Saturday, October 20, 2012

Linux and eclipse Trouble shoot


Sub Eclipse - problem :
 we will get an error like as follow 
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/java/jdk1.6.0_30/jre/lib/i386/client:/usr/java/jdk1.6.0_30/jre/lib/i386::/usr/java/packages/lib/i386:/lib:/usr/lib
To resolve the above problem 
   $ yum install subversion-javahl

Installing java in Ubuntu Linux:


There is a PPA (Personal Package Archives) made available by Roberto Ferramosca. To add this PPA, run the following command from the command line:

1       $ sudo add-apt-repository ppa:ferramroberto/java
2       $ sudo apt-get update

You can now install the JDK with the following command:

1       $ sudo apt-get install sun-java6-jdk

I you’d like to install the JRE or the Java Plugin along with the JDK, use the following:

1       sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin sun-java6-fonts

You must now set the Sun JDK as the default. You can see how to achieve this in a previous post Configuring Java on Kubuntu 10.10.

No comments:

Post a Comment