ok help me with running this simple java program

z0mb13

Lifer
May 19, 2002
18,106
1
76
OK I made a simple java file called test.java:


public class test {
public static void main () {
System.out.println("HELLO WORLD");
}
}

then in the command window, I try to compile it by doing so:

C:\Documents and Settings\henry gunawan>javac test.java
'javac' is not recognized as an internal or external command,
operable program or batch file.

why??? it was find before... I fiddled with my path variable just now... why doesnt it recognize the javac command??

TIA


 

TheDiggler

Senior member
Dec 23, 2002
695
0
0
Display the contents of your PATH variable in here so that people can point out how/where you may have hosed it.
 

z0mb13

Lifer
May 19, 2002
18,106
1
76
hmm I think I figured out why... I uninstalled the old SDK, but dowlnoaded only the JRE not the SDK!!


silly me