Ubuntu12.04Eclipse install SVN plug-in

Source: Internet
Author: User
1, the first part of the installation and in Windows is no different: subclipse Web site: http://subclipse.tigris.org/servlets/ProjectProcess? PageID = p4wYuA specifically emphasizes that when I write this article, the latest version of subclipse is 1.8.x, but it is best to download the version 1.6.x later. 2. After installation, the following two problems will occur: (1) the JavaHL library is missing.

1. First, the installation part is not different from that in Windows:

Subclipse Website: http://subclipse.tigris.org/servlets/ProjectProcess? PageID = p4wYuA

It is particularly emphasized that when I write this article, the latest version of subclipse is 1.8.x, but it is best to download the version 1.6.x at this time. The reason will be explained later.

2. The following two problems will occur after installation

(1) The JavaHL library is missing. This problem will not occur during installation on windows.

Failed to load JavaHL Library.

These are the errors that were encountered:

No libsvnjavahl-1 in java. library. path

No svnjavahl-1 in java. library. path

No svnjavahl in java. library. path

However, this problem is obvious. You only need to install the JavaHL library.

The installation command is sudo apt-get install libsvn-java.

After installation, you must change the eclipse configuration file.

Open the eclipse. ini file and add the following two lines under-vmargs:

-Djava. library. path =/usr/share/java/

-Djava. library. path =/usr/lib/x86_64-linux-gnu/jni/

It should be noted that the second line is the library location of the 64-bit system, if it is 32-bit, the location is/usr/lib/i386-linux-gnu/jni/

After the changes, restart eclipse.

(2) The JavaHL library version is inconsistent with the subeclipse version.

Ubuntu Incompatible JavaHL library loaded. 1.7.x or later required

If the subclipse version to be installed is 1.8.x, the version of the required JavaHL library must be 1.7.x or above, but the default version installed through the apt-get install svnlib-java command is 1.6.x, this is why lz did not select the latest version 1.8.x for subclipse installation at the beginning, but chose version 1.6.x.

There are three solutions:

1) uninstall subclipse of version 1.8.x and reinstall version 1.6.x. You can use Help> About eclipse> Installation Details to uninstall the Eclipse plug-in.

2) Change the Client of the SVN interface in the SVN option in eclipse to SVNKit, which can be used again. SVNKit does not use the JavaHL library.

3) install the JavaHL library of version 1.7.x. For details, refer to idea.

So far, the SVN plug-in should be easy to use.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.