esya
May 27th, 2010, 01:14 PM
I set up java-6-sun-1.6.20 by using Synaptic Package Manager and I updated PATH variable and added JAVA_HOME by chancing /etc/environment file.
My environment file:
#begin
JAVA_HOME = /usr/lib/jvm/java-6-sun-1.6.0.20/
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun-1.6.0.20/bin/"
#end
When I wrote echo $JAVA_HOME I got one empty line.
And I tried java. I got error.
~$ java
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
I did not understand what is wrong. What can I do to fix the problem?
My environment file:
#begin
JAVA_HOME = /usr/lib/jvm/java-6-sun-1.6.0.20/
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun-1.6.0.20/bin/"
#end
When I wrote echo $JAVA_HOME I got one empty line.
And I tried java. I got error.
~$ java
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
I did not understand what is wrong. What can I do to fix the problem?