[thelist] Java Question

Roger Ly evolt at matchpenalty.com
Thu Nov 18 16:59:42 CST 2004


>each .java file must have at one public class (whose
>name should match the file name minus the extention).
>so just declare your class as "public class Hello" and
>you should be fine

Tom,

If James' suggestion doesn't work, you may also want to verify that the
directory that your Hello.class file is in your java CLASSPATH.  I don't
think that by default, even the current directory (.) is included in your
classpath.

> java -cp . Hello

Roger
 



More information about the thelist mailing list