SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA
Live life to an interface, not an implementation!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Stan James:
Check these:
...
d) MyClass.class is in the current directory
If those are all true, it oughtta work.
It's always, always, always better
Tony Morris
Java Q&A (FAQ, Trivia)
D:\JavaDevelopment>java asdf
Exception in thread "main" java.lang.NoClassDefFoundError: asdf
ph34r my 133t j4v4 h4><0r1ng sk177z
Tony Morris
Java Q&A (FAQ, Trivia)
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA
Live life to an interface, not an implementation!
Originally posted by shekar march chandra:
Hi,
set CLASSPATH=c:\test.
THis will solve ur problem
Thanks,
Chandra
Originally posted by Rick O'Shay:
>> why you have to set '.' in the CLASSPATH on Windows, but not on linux?
You're demonstrating one of the problems: the default classpath is the current directory, by definition. Hoever, if you set it, there it goes the default. So, you probably had it set on Windows without "." in the CLASSPATH while it was not set at all on Linux.
[ August 21, 2005: Message edited by: Rick O'Shay ]
Originally posted by Stefan Wagner:
Another difference: On both systems, I have set $JAVA_HOME (%JAVA_HOME%) to the java-home.
On linux, I can put often used jars into $JAVA_HOME/jre/lib/ext and don't need to specify them in the classpath.
On windows that is of no help.
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|