Mac Eclipse SVN

Source: Internet
Author: User
Tags install brew svn client

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?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.