java works in command prompt but javac does not
So, if I'm in my command prompt, I can type 'java program' and it runs it no problem, but when I type javac it says 'javac is not recognized as an internal or external command, operable program or batch file. It only works if I'm in the actual java\jdk1.6.0\bin folder. This never used to happen before I updated, so some setting must have been changed. Any thoughts would be welcome
Thanks,
Wernzy
[422 byte] By [
Wernzya] at [2007-11-26 15:19:02]

Heh, thanks, didn't see that link. However, that FAQ appears to be like, 3 versions old. I'm pretty sure I'm supposed to be "Setting the classpath permanently" or something, and to do that it wants me to open a tab, in the System portion of the control panel, which does not exist. So where do I go now?
System is and has always been on the control panel. Maybe you have a work station which has been disabled to prevent such tampering. Not sure if you can disable System from the control panel.Alternatively, you can do a search for setting classpath as this has been asked a lot.
Sorry, I said that wrong. System is where it is, but the "environments" tab isn't in system, where the FAQ said it would. But I've now decided that classpath isn't my problem. It's not that javac isn't finding the program.java file, it's that javac just isn't being recognized as a command unless I'm in the jdk bin directory. I obviously don't know much about this subject, but I don't think that's a classpath issue.
> I'm pretty sure I'm supposed to be "Setting the classpath permanently" or
> something,
No. The error was "javac is not recognized as an internal or external command,
operable program or batch file". This means that your PATH variable needs
to be set properly.
I'm not sure this is dealt with in the FAQ. Check out this page from Sun's
Tutorial: http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html