Autoexec.bat isn't needed by Windows XP but I do have an empty autoexec.bat in the root of C: on my XP Pro system although it is a hidden file. If you need one for Java then since it's only a text file you can create one by right-clicking in a blank area in the root of C: and choosing New, Text Document, and renaming it to autoexec.bat. If it does already exist then you will be warned about overwriting it.
From what I understand, autoexec runs at startup and tells the PC the path for windowsy type things so windows can startup properly. For this reason I don't want to create a new one for fear of confusing the whatever-it's-called-that-starts-up-before-windows-thing. (I did try creating a new text doc and got no overwrite message but worried that I may be in the wrong folder).
It's not in the main C: bit?
I am assuming (quite safely) that I am doing something wrong here, it seems to be something which you can't not have.
So, please, does anyone know what I am doing wrong?
Basically (again, from what I understand) Autoexec is the bit that sets the paths.
I have downloaded the JDK but my PC does not know where.
I write the Java code in wordpad and need to run it from command prompt. So, I create the ubiquitous(sp) "Helloworld" in wordpad, go into DOS to run it and I have to enter the entire path (C:\programs\jdketc).
If I can alter autoexec then I can just type "javac Helloworld" or similar and the PC knows the path and runs the command. However, if I don't alter autoexec, I have to type CD C:\programs\JDKetc or something like that everytime I want to run a java app. as I am learning this will probably amount to at least 10's of extra hours typing when I could be learning more.