File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Windows ME and Classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Windows ME and Classpath" Watch "Windows ME and Classpath" New topic

Windows ME and Classpath

Sam Smoot
Ranch Hand

Joined: Apr 18, 2002
Posts: 238
I have created the following file in my C:\javacode\ directory. It compiles fine, but when I execute it, i get the error message..

The error message I get:

Exception in thread "main"
java.lang.NoClassDefFoundError: HelloWorld

Is this because of my classpath or is it somthing else?
My classpath is :

SET CLASSPATH=C:\j2sdk1.4.0_01\bin;c:\javacode\

If so, How can I get the classpath corrected for Windows ME?

CNSS/NSA Infosec Professional,<br />Software Engineer
Sapna Korecherla

Joined: Jul 07, 2002
Posts: 10
Always the classpath should be set to the library where all the class files are stored i.e., the JavaHome/lib, where JavaHome is the dir where java is loaded.
So set ur classpath. For beginners u need not set the classpath, all the class files will b loaded in the pwd(present working directory) and it is sufficient that u set the Path to the bin direcory.

Sam Smoot
Ranch Hand

Joined: Apr 18, 2002
Posts: 238
Actually, I needed to drop the final \ from the classpath Set statement (C:\javacode )..
Ah well... one day, I'll get the hang of this stuff...
I agree. Here's the link:
subject: Windows ME and Classpath
It's not a secret anymore!