[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: NoClassDefFound error



You probably donot have "." the current directory in ur classpath.  Correct
the same and try running "java" on the class file


Kiran




Rajeev Jha <rajeevj@xxxxxxxxxxxxxx> on 07/12/2000 03:00:21 PM

Please respond to linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx

To:   linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx
cc:    (bcc: Ravikiran G Thirumalai/India/IBM)
Subject:  [LIP] NoClassDefFound error




hi list
had sun jdk installed on one machine and everything was / is working
fine there. got a new machine for server and installed sun jdk there
also. set the path , classpath etc.
which java shows java in /usr/local/jdk1.2.2/bin
javac compiles a program , test.java and produces test.class
however when i try to run it i get the following error message :
Exception in thread main : java.lang NoClassDefFound Error : test

the same program is working fine on earlier machine. paths are set
correctly.
so why it is unable to find test.class ??

any hepls/suggestions ??

regards



--
 ----  why i am doing this ? it's the 'Tina' factor ,
           There is no alternative


 Rajeev Jha                          Email: rajeevj@xxxxxxxxxxxxxx
 Tring Tring : +91(20)5424301 Xtn: 1126  web: http://www.rajeevjha.com
 -----------------------------------------------------------------------

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