hi list
the problem was of not having a . in classpath. but java and javac path
were set and i was trying to execute the byte-codes from current
directory only. on earlier machine classpath didn't have a . and it was
working fine, when i executed programs from the same directory. on this
machine also,search should start from the current directory , so why u
have to include it explicitly in the classpath ?
Babu Kalakrishnan wrote:
>
>
> > 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
>
> 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).
--
Rajeev Jha
----------------------------------------------------------------------
Why Windows NT Server 4.0 continues to exist in the enterprise would be
a topic appropriate for an
investigative report in the field of psychology or marketing, not an
article on information technology.
---------
-----------------------------------------------------------------------
LIH is all for free speech. But it was created for a purpose - to help
people discuss issues about installing and running Linux. If your
messages are counterproductive to this purpose, your privileges to
submit messages can and will be revoked.