On Wed, Jul 12, 2000 at 04:07:12PM +0530, Rajeev Jha wrote:
> is anyone running sun jdk1.2.2 on RH6.2 ? it's running fine with RH6.1
hey I am running jdk1.2.2 on my RH 6.2 (Though I had some problems with Swing
Initially but now Its working fine for me. I just had to set the classpath carefully)
> on my box,and docs say it requires kernel 2.x.y and glibc 2.x etc.
Hey I think that does not matter (Correct me if I am wrong guys :-( As I think byte
code works fine on any kernel atleast in and around 2.* series).
> 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
I think U need to set the PATH and CLASSPATH to the directory in the /etc/profile
PATH="$PATH:<path to java directory>/bin"
this will allow U to use just "javac" and "java" without using the "./" in any
directory
CLASSPATH="$CLASSPATH:<path to java directory>/"
This will direct the compiler and the java to find for classes in the specified path.
now please dont forget to export this PATH and CLASSPATH for this all U need to do is
add "CLASSPATH" to the end of the just like below
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC CLASSPATH
> 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 ??
I think this solves Ur problem
Regards
Raghuram Vijapurapu
--
-----------------------------------------------------
[raghuram vijapurapu] [[EMAIL PROTECTED]]
-----------------------------------------------------
-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting. The site is
at http://botsie.tripod.com/beforeposting/