Jeroen van Vliet said:
Hello im trying to learn Java, i downloaded JDK for windows, but i cant run
javac.exe Xp doesnt have autoexec.bat, is there another compiler that works
for xp?
Another compiler won't solve the problem. The problem is that your
shell doesn't have C:\jdkWHATEVER\bin in its PATH variable, so it can't
find javac.exe, java.exe, or anything else.
On "My Computer", there's a button to "Set Environment Vars". Find
the PATH variable, and add:
C:\jdkWHATEVER\bin;
to the start of its value.
Close your current command window, open a new one, and type:
javac -help
to see that it's really visible.
The Windoze installer used to set the PATH automatically, but the
newer ones do not; they only add a desktop association for .jar files.