Eclipse installation version 1.7 svn plugin issue in Ubuntu 12.04

Source: Internet
Author: User
Tags svn

The lower version of Ubuntu requires some high version dependencies, but these dependencies exist in the high version of Ubuntu, and the high source is added to the Ubuntu source.

If the higher version relies on other library files, do the same, and use aptitude to delete the old version of the library file and automatically install the new library file.


=========================================================================================================

Ubuntu 12.04Precise Pangolin (the precise pangolin) installs Eclipse Indigo and after installing the SVN plugin (site-1.7.zip) prompts the following questions:

Failedto load Javahl Library. These are the errors, were encountered:nolibsvnjavahl-1 in Java.library.path no svnjavahl-1 in Java.library.path NOSV Njavahl in Java.library.path Java.library.path =/USR/LIB/JVM/JAVA-6-SUN-1.6.0.03/JRE/LIB/I386/CLIENT::/USR/LIB/JVM /java-6-sun-1.6.0.03/jre/lib/i386::/usr/lib/firefox:/usr/lib/firefox/:/usr/java/packages/lib/i386:/lib:/usr/ Lib

It means that you can't find Libsvnjavahl this thing.

On the Internet to find the next, to install Libsvn-java.

The Libsvn-java provided by Ubuntu12.04 is for the 1.6 version of the plug-in, and I installed a 1.7 plug-in; it's okay, Google found it.

Unfortunately, the default minimum version is Ubuntu 12.10quantal (green bit cuckoo), so the default of 12.04 in how upgrade also rose less than 1.7. Therefore, we need to provide 1.7 version of the 12.10 Libsvn-java to 12.04 of the source (if the desktop version, directly in the new Package Manager edit inside the Other tab add)

If a lower version of Libsvn-java is already installed, direct execution [sudo apt-get purge Libsvn-java] associated dependencies are deleted

To solve the liapruril1 problem that Libsvn-java to rely on, the liapruril1 in Ubuntu is provided in the following version:

Package libaprutil1 Lucid (Libs): The Apache portable Runtime the Library
1.3.9+dfsg-3ubuntu0.10.04.1 [Security]: AMD64 i386 lucid-updates (LIBS): The Apache portable Runtime the Utility Lib Rary
1.3.9+dfsg-3ubuntu0.10.04.1:amd64 i386 precise (LIBS): Apache portable Runtime Utility Library
1.3.12+dfsg-3: AMD64 i386 Quantal (LIBS): Apache portable Runtime Utility Library
1.4.1-3: AMD64 i386 raring (LIBS): Apache portable Runtime Utility Library
1.4.1-3: AMD64 i386 Saucy (LIBS): Apache portable Runtime Utility Library
1.5.2-1: AMD64 i386 trusty (LIBS): Apache portable Runtime Utility Library
1.5.2-2ubuntu1:amd64 i386

Source Documents

The version 1.7 Libsvn-java depends on the 1.4.0 version of the LIAPRURIL1, but according to the list above, 12.04 does not provide the Libaprutil required for version 1.7 Libsvn-java. As above, add the saucy source class table to the 12.04 source.

When you update the source, remember to update the index with apt-getupdate or aptitude update, if you update it with the new package.

Start the upgrade Libsvn-java, recommend using aptitude to install, because it will solve the dependency problem.

Perform aptitude install Libsvn-java

When prompted to upgrade Libaprutil to the desired version of Y, otherwise n.

Aptitude will suggest keeping the old library file or upgrading it to a new library file.


Add Libsvn-java to eclipse startup parameters

The first is to get 倒找 Libsvn-java address, the Internet is mostly said the path is/usr/lib/i386/jni, but I did not. With Find/-name SVN can not be found, can't or help Ubuntu official website, view the file List, found some so file is in the/usr/lib/i386-linux-gnu/jni/path. Okay, this is what we're looking for.

Source Documents

The path is then configured into Eclipse's startup parameters: Vim/usr/local/eclipse/eclipse.ini, add under-VM

-djava.library.path=/usr/lib/i386-linux-gnu/jni/

Restart Eclipse to see success.


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.