Close
jGuru Forums
Posted By: Anonymous Posted On: Wednesday, May 16, 2001 10:39 PM
When I running a java program, for example C:java hello put the following error: Exception in thread "main" java.lang.NoClassDefFoundError: hello My OS is Windows 2000 profetional Thank you for you help!
Re: Problem when I running a java program
Posted By: Alex_Chaffee Posted On: Monday, May 21, 2001 12:52 PM
Posted By: Christopher_Schultz Posted On: Thursday, May 17, 2001 09:44 AM
Try being explicit about the classpath:
C:> java -classpath . hello
(This assumes that hello.class is in c:).
c:
-chris