Yes, the poster, Kenny Freeman, is correct. To run a class HelloWorld, which
contains a static method 'main()', you need to type:
java HelloWorld
As long as the directory '.' is in your classpath, and the file
HelloWorld.class is in this directory, and HelloWorld is not a part of a
package, thi
On Wed, 26 Aug 1998 14:05:21 -0400 (CST), Aaron Brick wrote:
>my JDK installation seems to be weird. i saw a previous post relevant to
>this problem in the archive but the responses i saw weren't helpful.
>
>when i do "java HelloWorld.class" it complains about not being able to
>find the class fi
My guess is this, you don't have your classpath set.
Make sure you have the following in your CLASSPATH environment
variable.
Path to the JDK classes. Path to any external jar files you might use (ie
swing.jar)
Path to your development tree (Ie for me it is the root of my jclass hierarchy)
Fi
uh, I may be way off on this, but try simply:
java HelloWorld
You do not include the .class ext. Then, you still have to set the
classpath as per the last bunch of posts about it
__
Kenny Freeman <[EMAIL PROTECTED]>
"Time is the fire in which we burn." - ST Generations
---
my JDK installation seems to be weird. i saw a previous post relevant to
this problem in the archive but the responses i saw weren't helpful.
when i do "java HelloWorld.class" it complains about not being able to
find the class file - even if i pass the full path - until i do a
"-classpath `pwd`"