Add the "." as a seperate entry in your classpath, like:
"c:\someotherpath\andmorepath\;."
Where do I go to modify my classpath?
What's your operating system?
For WinXP you can right click on My Computer, select "Properties",
select the "Advanced" tab, click "Environment Variables", under "System
variables" look for "classpath", create one if it does not exist, if that's
the case all it contains is the ".".
Then I open up and see
the person fumbling here is me
a different way to be
Looks right to me sake, you could try putting the "." at the start of
your classpath since some users have problems with a space in
their classpath (or look for a Java install in for example "C:\j2sdk1.4.2_03\bin"
and change your classpath accordingly)
If this does not resolve your problem take a look at the Java FAQ
Then I open up and see
the person fumbling here is me
a different way to be
I've got the exact same problem that is outlined here. I can code and compile, but running the Java application leads to the 'Exception in thread "Main" java.lang.NoClassDefFoundError' message. However, I have Windows 98SE, and I'm not sure where to find the 'classpath' that's been mentioned for the WinXP fix. I tried modifying the Path in the Autoexec.bat file, but that didn't help. Any ideas? Thanks.
Try adding the "." to your classpath in autoexec.bat:
SET CLASSPATH=C:\JDK...\some other path;.
create it if you have to, then it might look like this:
SET CLASSPATH=.
But then again I last used win98 back in 98...
HTH
Then I open up and see
the person fumbling here is me
a different way to be
Hmm, did you try adding D:\Java\jdk\bin to your path variable?
According to the error message your javac.exe is running from the
system32 folder under windows. I don't think you need D:\Java\jdk\bin
in your classpath. The classpath is used to locate .jar, .zip or .class files,
not the executables such as java.exe and javac.exe. HTH
Then I open up and see
the person fumbling here is me
a different way to be