Computing.Net > Forums > Programming > Java Run Problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Java Run Problem

Reply to Message Icon

Name: Kenny
Date: January 5, 2003 at 12:33:55 Pacific
OS: WinXP
CPU/Ram: P4/512MB
Comment:

Currently using Java2 SDK 1.4.1 from java.sun.com

The program has no problem and there is no compile errors...

But it the program cannot run properly... with a error msg-----
(Exception in thread "main" java.lang.NoClassDefFoundError: filename)

Please... Can any expert people help me out?? Many Thanks!!!!



Sponsored Link
Ads by Google

Response Number 1
Name: Guy
Date: January 5, 2003 at 14:39:10 Pacific
Reply:

Classic CLASSPATH problem probably .... try:

java -cp . filename

HTH, Guy


0

Response Number 2
Name: Kenny
Date: January 6, 2003 at 05:54:24 Pacific
Reply:

Its working now!!!
Thanks a Lot!!!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Java Run Problem

Java thread problem www.computing.net/answers/programming/java-thread-problem/13991.html

Java Execution Problem www.computing.net/answers/programming/java-execution-problem/8104.html

Java BufferedImage problems www.computing.net/answers/programming/java-bufferedimage-problems/6341.html