Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

I can't find "javac"

819272Nov 28 2010 — edited Mar 1 2011
I am having a hard time fixing this problem. I downloaded JDK 1.6.0_22 and I am using Windows Vista Home Premium edition and when I try to run the "javac HelloWorlApp.java" I get the error: 'javac' is not recognized as an internal or external command, operable program or batch file

I went back and read the directions and also the troubleshooting page with a similar example and created this path:

To set the PATH permanently, add the full path of the jdk1.6.0_<version>\bin directory to the PATH variable. Typically this full path looks something like C:\Program Files\Java\jdk1.6.0_<version>\bin. Set the PATH as follows on Microsoft Windows:

1.Click Start > Control Panel > System on Windows XP or Start > Settings > Control Panel > System on Windows 2000.
2.Click Advanced > Environment Variables.
3.Add the location of bin folder of JDK installation for PATH in User Variables and System Variables. A typical value for PATH is:
C:\Program Files\Java\jdk1.6.0_<version>\bin

I still can't find/run the "javac" command but the computer cannot find it.

Any advice? Thanks...

Richard.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 29 2011
Added on Nov 28 2010
13 comments
9,233 views