After installing the Eclipse plug-in Svneclipse plugin under your Mac, each time you open eclipse, the following pop-up box will appear:
Tip You are missing the Javahl Library.
By selecting eclipse→ Preferences (preference) →TEAM→SVN, you can see that the SVN interface client is defined as follows:
This indicates that Javahl is missing from the current system and needs to be installed manually.
Subeclipse Official website (Http://subclipse.tigris.org/wiki/JavaHL Open may be very slow) the introduction says there are two ways to install the Javahl Library on Mac computers (OS X), One is through Macport, one is through the homebrew form. :
Here we mainly introduce the use of homebrew implementation installation.
Step 1: Install Homebrew:
The installation of homebrew depends on Xcode and Commond line, and the installation steps are as follows:
1, install Xcode2, install command line tools, open the terminal, enter commands: xcode-select-install so Mac 10.9 system will install command line TOOLS3, install Brew , open terminal, enter command: CURL-LSSF http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz-c/usr/local--strip 14, update brew, open terminal, enter command: (can be ignored) brew update5, diagnostic system, open terminal, Input command: (can be ignored) brew Docto R
Homebrew installation Process Introduction There are also many tutorials on the web, such as:
http://brew.sh/--Official website
Http://www.jb51.net/os/MAC/101860.html
Http://www.cnblogs.com/liulipeng/p/3938518.html
No more introduction, if the installation process encountered a problem, Baidu under the basic can be resolved.
Step 2: Execute the command to install the Javahl
Enter the terminal and type the following command:
Brew Install--universal--java Subversion
But you will encounter the following problems, suggesting that there is a package below, the reason you know, was the wall.
==> Downloading Https://www.apache.org/dyn/closer.cgi?path=subversion/subversion
Already downloaded:/library/caches/homebrew/subversion-1.8.13.tar.bz2
==> Patching
Patching file Configure
Hunk #1 succeeded at 25386 (offset lines).
Patching file subversion/bindings/swig/perl/native/makefile.pl.in
==> Downloading https://serf.googlecode.com/svn/src_releases/serf-1.3.8.tar.bz2
Curl: (7) Failed to connect to serf.googlecode.com Port 443:operation timed out
error:failed to download resource "Subversion--serf"
Download failed:https://serf.googlecode.com/svn/src_releases/serf-1.3.8.tar.bz2
This problem also has the solution, that is to download the corresponding package, placed in the corresponding directory, so that you can install Javahl the process of skipping serf-1.3.8.tar.bz2 download.
Step 2.1: Download the SERF-1.3.8.TAR.BZ2 package:
http://download.csdn.net/detail/shanwenchao/8653245
After download, put in any directory, change the name to: subversion--serf-1.3.7.tar.bz2
Step 2.2: Place the renamed file in the directory:
Place the modified file under the/library/caches/homebrew directory.
Step 2.3: Re-execute the installation command to install Javahl:
Install --universal--java Subversion
This is not downloaded but directly from the file directory to fetch the package. The following procedure:
BrewInstall--universal--java subversionwarning:subversion:--java was deprecated; Using--with-java instead!==> downloading https://www.apache.org/dyn/closer.cgi?path=subversion/subversionAlready downloaded:/library/caches/homebrew/subversion-1.8. -.Tar. bz2==>patchingpatchingfileConfigurehunk #1Succeeded at25386(offset -lines). Patchingfilesubversion/bindings/swig/Perl/native/makefile.pl.inch==> Downloading https://serf.googlecode.com/svn/src_releases/serf-1.3.8.tar.bz2already downloaded:/library/caches/homebrew/subversion--serf-1.3.8.tar.bz2==>/usr/local/opt/scons/bin/scons prefix=/usr/local/cellar/subversion/1.8. -/Li==>/usr/local/opt/scons/bin/sconsInstall==>./configure--prefix=/usr/local/cellar/subversion/1.8. ---WITH-ZLIB=/USR--with-sqlite=/usr/local/opt/sqlite--with-serf=/usr/local/cellar/subversion/1.8. -/libexec/serf--Disa==> Make==> Make Install==> MakeTools==> Make Install-Tools==> MakeJavahl==> Make Install-Javahl==>Caveatssvntools has been installed to:/usr/local/opt/subversion/libexecyou need to link the Java bindings into the Java Extensions folder: sudo mkdir -p/library/java/Extensions sudo ln -s/usr/local/lib/ libsvnjavahl-1. dylib/library/java/extensions/libsvnjavahl-1 . DylibBash Completion have been installed to:/usr/local/etc/BASH_COMPLETION.D==>Summary?? /usr/local/cellar/subversion/1.8. -:119Files, 18M, builtinch 11.3Minutes
The entire installation process will last for a long time, and do not switch off the terminal halfway.
Step 2.4: Execute the command binding relationship between the Java environment and the Java Extension directory:
As indicated in the last installation process:
need to link the Java bindings into the Java Extensions folder: sudo mkdir -p/library/java/Extensions sudoln -s/usr/local/lib/libsvnjavahl- 1. dylib/library/java/extensions/libsvnjavahl-1. dylib
Execute the above two sentences sequentially in the terminal, and the entire installation process is complete.
After installation, check out the SVN client configuration below to go to eclipse:
Problem Solving!
Throughout the installation process, it is briefly divided into the following processes:
1: Install brew;
2: Download the package, rename it, put it under the specified directory;
3: Execute the installation command and its supplementary command;
Most of the online introduction to solve Javahl not available posts are only introduced the first step and the third part, but less the second, do not know whether they are FQ installed or installed abroad so did not encounter the wall caused by the file can not download the problem. Now join Step 2, hoping to help you solve the problem.
Reference Description:
http://bbs.csdn.net/topics/390972167
http://ju.outofmemory.cn/entry/90475
Workarounds for installing SVN plugin Javahl not available under Mac