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.

--
Manuel A. McLure KE6TAW <[EMAIL PROTECTED]> <http://www.mclure.org>
...for in Ulthar, according to an ancient and significant law,
no man may kill a cat.                       -- H.P. Lovecraft

--
gentoo-user@gentoo.org mailing list



Reply via email to