Oh sorry. Well, I type up it up it notepad, then save it. But I might be saving it somewhere wrong. I open up Command Prompt and try to type in cd C:\java but it doesnt come up(most of the time) but when it does I type dir then the directory opens and my file is in it, but then when I type javac HelloWorldApp.java this error comes up
'javac' is not recognized as an internal or external command, operable program or batch file. I did what the error helper said to do when that error came up but it still isn't working. I'd thought I would ask you people because you have MUCH more experiance than me.
Thanks
-Ghost
Message was edited by:
CyripticGhost
You need to modify your PATH so that the command shell knows where to find javac.exe. You'll also need to make sure you installed the JDK, not just the JRE.
I believe very detailed instructions on download, install, HelloWorld are here:
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
> command, operable program or batch file. I did what
> the error helper said to do when that error came up
> but it still isn't working.
No, I don't think so. If you'd followed those instructions exactly, I believe it would have worked.
Do this:
Type echo %PATH%
at the command prompt.
If you had set up the PATH env var as per the instructions, you'd see something like C:\jdk_1.5.0_something\bin in there.
One thing you must do--and I'm not sure if it's mentioned there--is close the command prompt and open a new one after modifying PATH.
> http://java.sun.com/docs/books/tutorial/getStarted/cup
> ojava/win32.html
>
> Thats the link I used but didn't work.
Again, you need to tell us exactly what you did and exactly what "doesn't work" means.
As far as I know, the instructions there are correct.