i am on the right directory that my class file is.
Steve McCann
Ranch Hand
Joined: Oct 20, 2004
Posts: 81
posted
0
The class name is case sensitive - even in a Windows environment. Does your class start with a capital letter? [ September 22, 2005: Message edited by: Steve McCann ]
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35232
7
posted
0
What kind of error message do you get? (Word af advice: Don't just say "it doesn't work" or "it doesn't start", say specifically what you're doing, what you expect to happen, and what actually happens, including all error messages.)
Is the current directory part of the classpath? Maybe you need to type "java -classpath . myprogram"
Oops. Just noticed you put 'class file' in your post. The excitement of my first reply to a post got the better of me! [ September 22, 2005: Message edited by: Phil Dixon ]
kelvin cheung
Ranch Hand
Joined: Mar 27, 2004
Posts: 120
posted
0
i get this message :
'java' is not recognized as an internal or external command, operable program or batch file.
Aly Gilani
Greenhorn
Joined: Jul 20, 2004
Posts: 7
posted
0
Originally posted by kelvin cheung: i get this message :
'java' is not recognized as an internal or external command, operable program or batch file.
Hi Kelvin,
I think your PATH variable is not set properly.
make sure you have C:\<JDK>\bin directory in the path.
HTH,
Aly
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
posted
0
As you work through this, see if THIS helps. I'm looking for feedback on how to make it better, so let me know if it doesn't!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
kelvin cheung
Ranch Hand
Joined: Mar 27, 2004
Posts: 120
posted
0
oh yeah. i did not know that I needed to set the path. thank you all!
by the way, Stan James: you got a very helpful page! it did help me, seriously! thanks
Layne Lund
Ranch Hand
Joined: Dec 06, 2001
Posts: 3061
posted
0
Originally posted by Stan James: As you work through this, see if THIS helps. I'm looking for feedback on how to make it better, so let me know if it doesn't!
That's a great reference. You should add a link to it from the JavaRanch FAQ.