[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: NoClassDefFound error
Hi Rajeev
I know your error.
Just encapsulate your code in a class and it will work
eg
class mytest
{
public static void main()
{
System.out.println("Hi Java");
}
}
bye
Mahesh
mahesh@xxxxxxx
----- Original Message -----
From: Rajeev Jha <rajeevj@xxxxxxxxxxxxxx>
To: <linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, July 12, 2000 7:30 PM
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
>