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]
# 1
On the New To Java page there is a link near the top to a FAQ. You might want to read it.
floundera at 2007-7-8 11:02:35 > top of Java-index,Java Essentials,New To Java...
# 2

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?

Wernzya at 2007-7-8 11:02:35 > top of Java-index,Java Essentials,New To Java...
# 3
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.
floundera at 2007-7-8 11:02:35 > top of Java-index,Java Essentials,New To Java...
# 4

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.

Wernzya at 2007-7-8 11:02:35 > top of Java-index,Java Essentials,New To Java...
# 5

> 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

pbrockway2a at 2007-7-8 11:02:35 > top of Java-index,Java Essentials,New To Java...
# 6
Its a PATH problem which is basically the same. On the System window, click the Advanced tab and then the Environment Variables button.
floundera at 2007-7-8 11:02:35 > top of Java-index,Java Essentials,New To Java...
# 7
Hurrah. Got it. Thanks guys :)
Wernzya at 2007-7-8 11:02:35 > top of Java-index,Java Essentials,New To Java...