Results 1 to 4 of 4
- 10-17-2010, 11:35 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 2
- Rep Power
- 0
'javac' is not recognized as an internal command
Well, recently, my compiler stopped working and I got the error message "'javac' is not recognized as an internal command" Its worked for years, but all of a sudden it decided to stop. I haven't touched any of the environmental variables since I set them.
PATH = C:\Program Files\Java\jdk1.6.0_21\bin
CLASSPATH = CLASSPATH=C:\Program Files\Java\jdk1.6.0_21\bin;%CLASSPATH%
CLASSPATH (SYSTEM VARIABLES) .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
I don't think the last one matters but oh well.
- 10-18-2010, 12:46 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
(1) Check that the value of the PATH variable is reported at the command line to be what you posted. ( Iwould expect it to be reported with quotes so that the space character is properly interpreted - but I don't have a Widows machine in front of me to test that.)
(2) Check that C:\Program Files\Java\jdk1.6.0_21\bin\javac.exe exists
(3) Check to see whether you can run the compiler by specifying its full name: C:\Program Files\Java\jdk1.6.0_21\bin\javac.exe
(This problem arises from an invalid value of the PATH variable. It has nothing to do with the value of CLASSPATH. That said, why do you have c:\Program Files\Java\jdk1.6.0_21\bin on the CLASSPATH?)
It might be a good idea to copy and post the exact and entire output obtained from verifying (1)->(3) at the command line.
- 10-18-2010, 02:28 AM #3
Member
- Join Date
- Oct 2010
- Posts
- 2
- Rep Power
- 0
- 10-18-2010, 03:04 AM #4
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Similar Threads
-
'Javac' is not recognized as an internal or external command or batch file
By FinalFatexX in forum New To JavaReplies: 19Last Post: 11-27-2010, 12:31 AM -
javac not recognized as an internal or external command
By kotoko in forum New To JavaReplies: 28Last Post: 10-26-2010, 04:39 AM -
javac is not recognized as an internal or external command... and vista
By tsaund in forum New To JavaReplies: 13Last Post: 09-17-2009, 07:56 AM -
javac is not recognized as internal or external command, operable program or batch...
By ashin in forum New To JavaReplies: 8Last Post: 11-18-2008, 09:21 AM -
'javac' is not recognized as an internal or external command
By sam_1032002@btopenworld.c in forum New To JavaReplies: 3Last Post: 10-18-2008, 02:40 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks