Hi,
I just installed JDK1.5 on a linux machine and added it bin directory
to the path variable.
However, whenever i execute java, it give me the following error
yantra:/usr/java/jdk1.5.0_06/lib# java
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
am i missing something. like classpath.. i think rt.jar is included in
classpath by default
please give me any clue
thanks
on ali
Gordon Beaton - 25 Apr 2006 15:26 GMT
> whenever i execute java, it give me the following error
>
> yantra:/usr/java/jdk1.5.0_06/lib# java
> Error occurred during initialization of VM
> java/lang/NoClassDefFoundError: java/lang/Object
Probably you aren't running the java you just installed.
What do "type -a java" and "type -a javac" say?
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
onali1811@gmail.com - 25 Apr 2006 15:49 GMT
i used "which java" command and it showed me the correct path