Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CLASSPATH QUESTION

Status
Not open for further replies.

andrdoba

Technical User
Aug 13, 2002
16
GB
I am lost!!!
My problem is that I can compile a class but cant run. I believe it's down to my CLASSPATH. I am getting Exception in thread "main" java.lang.NoClassDefFoundError: when thring run any class. Here is what I have:
C:\j2sdk1.4.0_01\bin\java.exe
AND
C:\Program Files\Java\j2re1.4.0_01\bin\java.exe
I am running W2000.
CLASSPATH: C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:\j2sdk1.4.0_01\bin;C:\Program Files\Java\j2re1.4.0_01\bin
PATH:
C:\j2sdk1.4.0_01\bin
Please what am I doing wrong?
Thanks
 
Just a thought: have you given your main() the proper form?:

public static void main(String [] args)
{

}

HTH
Pieter
 
ok guys it works and I did even have to change anything. thanks, anyway
 
stefanwagner :

I don't why why "perobuha" resurrected this thread, but it was last accessed in September 2002, so I wouldn't worry too much about it !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top