SVN problem on Ubuntu System

SVN problem on Ubuntu System

No matter openJDK or Sun JDK, I met this problem when I attempt use SVN on my Ubuntu system.

Subversion Native Library Not Available:


SVN problem when I used OpenJDK.

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

java.library.path = /usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:
/usr/lib/jvm/java-6-openjdk/jre/lib/i386:
/usr/lib/xulrunner-1.9.2.15:
/usr/lib/xulrunner-1.9.2.15:
/usr/java/packages/lib/i386:
/usr/lib/jni:
/lib:
/usr/lib


SVN problem when I used sun JDK
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
java.library.path = /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386/client:
/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386:
/usr/lib/xulrunner-1.9.2.15:
/usr/lib/xulrunner-1.9.2.15:
/usr/java/packages/lib/i386:
/lib:
/usr/lib

Solution
try to install this software with command:
>sudo apt-get install libsvn-java

backup the configuration file of eclipse
>cp eclipse.ini eclipse.ini_bak

modify the configuration in eclipse.ini
>vi eclipse.ini

openFile
-vmargs
-Djava.library.path=/usr/lib/jni

Ok. All the steps can fix my problem.

你可能感兴趣的:(java,eclipse,jvm,SVN,ubuntu)