Rajeev Jha typed:
> 
> is anyone running sun jdk1.2.2 on RH6.2 ? it's running fine with RH6.1
> on my box,and docs say it requires kernel 2.x.y and glibc 2.x etc. when
> i moved to a new box with RH6.2, there javac is compiling the code but
> when i try to run it with ./java it says : Exception in thread main :
> NoClassDefFound Error : test

Are you trying to run the application with your current directory as
jdk1.2.2/bin ? (The ./java command indicates that the "java" executable 
is in your current working directory). in which case is test.class also 
in the same directory ?

> am unable to figure out the reason for this.. can it be that when i
> installed RH6.2 it installed some other version of glibc and kernel and
> that is causing problems ?? 
> 

Unlikely to be a glibc or kernel problem - Looks more like a CLASSPATH 
issue. I'm not sure if RH6.2 installs some version of java (possible). 
Check to make sure  you're running the correct version of java & javac 
(which java, which javac). Different versions of java follow different 
norms for default classpaths. 

Kala

-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

Reply via email to