Results 1 to 7 of 7
  1. #1
    maryjdubois is offline Member
    Join Date
    Aug 2014
    Posts
    4
    Rep Power
    0

    Unhappy javac is not recognized as an internal or external command error - help required!

    I've installed the Java JDK onto my Windows 8 laptop and the first thing I need to do is run the compiler from the Command Prompt. The first prompt I enter is C:java -version. This worked fine, however when I try to enter the next prompt C:javac -version, I am getting the following screen and messages:

    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.

    C:\Users\Mary>java -version
    java version "1.8.0_20"
    Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
    Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

    C:\Users\Mary>javac -version
    'javac' is not recognized as an internal or external command,
    operable program or batch file.

    I have entered the path into the environment variables area within my control panel. Not too sure why the first prompt works, but the second doesn't...

    Any help would be greatly appreciated!

    Thanks
    Mary

  2. #2
    SurfMan's Avatar
    SurfMan is online now Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,030
    Rep Power
    4

    Default Re: javac is not recognized as an internal or external command error - help required!

    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  3. #3
    maryjdubois is offline Member
    Join Date
    Aug 2014
    Posts
    4
    Rep Power
    0

    Default Re: javac is not recognized as an internal or external command error - help required!

    So I've had to reinstall the whole thing again and still the same thing is happening. I'm at a loss as to why this isn't working when I've followed the instructions. Even my partner has installed it and tried...still the same issue happens with him also :(
    Last edited by maryjdubois; 08-25-2014 at 08:28 PM.

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,017
    Rep Power
    10

    Default Re: javac is not recognized as an internal or external command error - help required!

    I've deleted your duplicate post.

    It sounds like you have a JRE on your path, but not a JDK. The javac tool is included in the JDK, not the JRE. The java tool is included in both.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    maryjdubois is offline Member
    Join Date
    Aug 2014
    Posts
    4
    Rep Power
    0

    Default Re: javac is not recognized as an internal or external command error - help required!

    Quote Originally Posted by KevinWorkman View Post
    I've deleted your duplicate post.

    It sounds like you have a JRE on your path, but not a JDK. The javac tool is included in the JDK, not the JRE. The java tool is included in both.
    How do I check to see if it is a JRE? Sorry for the ignorance...new to all of this...

  6. #6
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,017
    Rep Power
    10

    Default Re: javac is not recognized as an internal or external command error - help required!

    Generally, the JDK will have a "jdk" in its path, and the JRE will have a "jre" in its path. Which did you install? What is on your path?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  7. #7
    maryjdubois is offline Member
    Join Date
    Aug 2014
    Posts
    4
    Rep Power
    0

    Default Re: javac is not recognized as an internal or external command error - help required!

    Hi,

    Mines had JDK in the path, however it was something silly. There was an extra backslash somewhere on the path before my JDK path so removed that and it worked fine.

    Thanks Anyways! :)

Similar Threads

  1. Replies: 1
    Last Post: 08-14-2012, 08:23 AM
  2. Replies: 28
    Last Post: 06-10-2012, 04:48 AM
  3. Replies: 12
    Last Post: 01-28-2012, 06:24 PM
  4. Replies: 28
    Last Post: 10-26-2010, 05:39 AM

Tags for this Thread

Posting Permissions

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