|
-
Jun 9th, 2002, 10:45 PM
#1
As filburt1 began to say:
You compile your java source files "GuestBook01.java" with the java compiler "javac.exe"
C:\javac GuestBook01.java
which creates
GuestBook01.class
Then run it with java.exe and without the ".class" extension
java GuestBook01
If you haven't set the CLASSPATH environment variable to C:\WINNT\Profiles\Administrator\Desktop\jdbc;, then your line was almost correct (but you used java.exe not javac.exe)
C:\javac -classpath C:\WINNT\Profiles\Administrator\Desktop\jdbc; GuestBook01.java
Exception in thread "main" java.lang.NoClassDefFoundError: GuestBook01/java
Since java.exe looks to execute a class file, the class file you specified was not found.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|