You need to amke sure . is in your classpath. Then you need to type the
name of the program without the .java extension. Here is what works on
my system.
% setenv CLASSPATH .
% java HelloWorld
Mo DeJong
dejong at cs.umn.edu
On Fri, 8 Jan 1999, Hoang C. Truong wrote:
> Hello,
> When I compile m
Hello,
When I compile my java source using this command:
javac HelloWorld.java
It produced HelloWorld.class.
When I try to run it, it gave me error message like this:
java HelloWorld
can't find HelloWorld class
Does anyone know what is going on? Thanks