Hi All,
This is my first time at javaranch.com and I am pretty new with
java. I installed Java JDK 6 Update 16 under C:ProgramsFiles\Java\ on my computer (windows xp). Of course, I had to try the simple Hello World program.
I set up my PATH variable on
System Properties->Advanced->Environment Variables->CLASSPATH=C:\Program Files\Java\jdk1.6.0_16\bin; I then tried to compile hello.java which is
public class hello {
public static void main (
String[] args) {
System.out.println("Hello World");
}
}
using javac hello.java but it gave an error that says: 'javac' is not recognized as an internal or external command, operable program or batch file. I then tried to move the program inside the bin, compile it and it didn't give me an error. However, I couldn't find the hello.exe program to run. I then tried to break the program (take the quotation mark ") to see if the compiler will complain about it and it sure did give me a compile error on command prompt. I've also tried closing cmd window and even restarted my computer but still no luck. I've tried searching online about and it points to the PATH variable but I think I've set my path correctly.
If anyone ran into this problem or know of any other things I can try, please let me know.
Thanks,
LostSoul