Results 1 to 4 of 4
  1. #1
    Infected_ is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

    Unhappy '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.

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    (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.

  3. #3
    Infected_ is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

    Default

    Quote Originally Posted by pbrockway2 View Post
    (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.

    Thanks bro! I just specified the full name in the compiler and it worked! Thx tons!

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

Similar Threads

  1. Replies: 19
    Last Post: 11-27-2010, 12:31 AM
  2. Replies: 28
    Last Post: 10-26-2010, 04:39 AM
  3. Replies: 13
    Last Post: 09-17-2009, 07:56 AM
  4. Replies: 8
    Last Post: 11-18-2008, 09:21 AM
  5. 'javac' is not recognized as an internal or external command
    By sam_1032002@btopenworld.c in forum New To Java
    Replies: 3
    Last Post: 10-18-2008, 02:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •