tcc2f6

Member
Jun 30, 2001
147
0
0
Hey guys, I formated my HD and did a fresh install of XP, and it is going well. I have been planning to write some stuff in java so I installed Java 2 SDK, Standard Edition, v 1.3.1. I go into the dos prompt and can run any class file from anywhere with the usual 'java filename. However, when i use javac filename.java it says that " 'javac' is not recognized as an internal or external command, operable program or batch file."

But, If i put the java file that I want to complie in the bin folder inside of where I installed Java and then use javac filename.java it will work and complie the java file.

So I guess my question comes down to does anyone know how I can get it to recognize the javac command anywhere?

Thanks
 

squirtle24

Senior member
Apr 17, 2001
253
0
0
You have to update the PATH environment variable. Look here for instructions. I imagine doing this for WinXP would be the same as doing it for Win2k.