how to use javac under the cmd prompt?

kimagurealex

Senior member
Oct 9, 1999
825
0
0
I am trying to use the javac command. However, my windows XP home can't find this internal command. Can someone show/teach me how to set the path for the java under the cmd? Thanks.

Alex
 

manly

Lifer
Jan 25, 2000
13,086
3,851
136
You can either set the PATH environment variable in cmd, or the NT way of doing this is through the environment variables in System Properties. I'm sure the exact procedure is specifically described in the Java2 SDK docs.
 

Yomicron

Golden Member
Mar 5, 2002
1,735
1
81
First, install Sun's Java SDK. After you have it installed you may have to add java's bin folder to your Path variable. To do this, go to the System control panel --> Advanced tab --> Environment Variables button, select the Path variable, click edit and add the bin directory to the variable value field (the items in this field are separated by semicolons). For me, my bin folder is located at"C:\j2sdk1.4.2_03\bin".