Ever since I changed my mac and changed my idea, I haven't been using eclipse. The first two days of whim (Zuo), thinking about nostalgia, open eclipse to engage in.
As a result of the tragedy, Eclipse, under Mac, was so hard that it took a lot of time to get it done. (In fact, I do not need, just can not get out of the obsessive-compulsive disorder ...) )
Let's summarize the tragedy below.
Download eclipse unzip to open, then install Subclipse. Then go to eclipse settings to see subversion, tragedy, pop-up hints:
Failed to load Javahl Library.these is the errors that were Encountered:no Libsvnjavahl-1 in JAVA.LIBRARY.PA Thno Svnjavahl-1=/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386/client:/usr/lib/jvm/ java-6-sun-1.6.0.20/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/ I386:/lib:/usr/lib
According to the usual routines, Google (quietly tell you, it is best not to use Baidu), found that the original Mac OSX this two-in-the-box subversion is actually a castrated goods (do not understand why to castrate), there is no Javahl related library, the role of this library simply said, is to provide the interface to third parties such as Subclipse to invoke the local SVN, so when Subclipse found that there is no such library, there is no way. (There is a choice here, is to install subclipse when the Svnkit, so it will bring an SVN client, do not need to call the local SVN through Javahl, but it is not recommended, in an environment, it is best to use the same SVN)
So the key to solve the problem is to give SVN to install a Javahl library, Google for a long time, was a lot of pits back, found Javahl This library can not be independent to svn back (or I did not find the method), so only replace the whole SVN this idea, first remember SVN- Version to look at the existing version of SVN, lest change later found that the version is not the same tragedy (like me). Install SVN on Mac, first need to install brew, of course also can use Macport, anyway one meaning. Installing brew is easy, and a ruby script is done.
" $ (curl-fssl https://raw.github.com/Homebrew/homebrew/go/install) "
You can then use the Brew command, similar to the apt-get below Debain. To install the full SVN, command:
Install --Java Subversion
If you happen to have the latest version of it, that's okay, if you're using a version of 1.6 or 1.7, you'll need to convert subversion to Subversion16 or subversion17.
Make is required during installation and may take a bit of time, which depends on your machine.
When you are finished, you can see that the installation process requires you to execute the following command
sudo mkdir -p/library/java/sudoln -s/usr/local/lib/libsvnjavahl-1. Dylib/ library/java/extensions/libsvnjavahl-1. dylib
But before executing the first command, remember to check that the directory is already present, and that there is no mkdir.
Execute the second command and take the chain off.
Finally restart Eclipse, then go to subversion that option to see if you have found the Javahl library?