Manuel McLure wrote:

Phill wrote:

[EMAIL PROTECTED] java $ java Test.class
Exception in thread "main" java.lang.NoClassDefFoundError: Test/class/


Try

   export CLASSPATH=.:${CLASSPATH}
   java Test

When you run the Java class, you give it just the name of the class without the extension. If you say "java Test.class" it's going to try to find a class "class" in a package "Test" - i.e. "Test/class.class" as the filename to run.

... D'OH.
Thanks for that and for the eclipse suggestion, which is merging as we speak.


--
[email protected] mailing list



Reply via email to