Results 1 to 4 of 4
  1. #1
    yzb2 is offline Member
    Join Date
    May 2013
    Posts
    2
    Rep Power
    0

    Default javac not recognised

    I know this is a common question, but I've looked at a few of the other threads and haven't seem to found an answer.

    javac IS in the bin folder, I'm staring at it now.

    This is what I typed into the Path: C:\Program Files\Java\jdk1.7.0_21\bin

    When I type path into command prompt it gives the correct path with javac at the end.

    Halp?

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

    Default Re: javac not recognised

    If you are not doing so it might be a good idea to work, step by step, through the "Hello World!" for Microsoft Windows page in Oracle's Tutorial. Your problem is the first mentioned in the Common Problems page where they give a link to step by step instructions for changing the value of the PATH variable.

    If this doesn't resolve the problem it might be a good idea to describe exactly how you attempted to change the path, and post the exact output from the path command. Note that javac (or javac.exe) should not appear at the end of the path.

  3. #3
    yzb2 is offline Member
    Join Date
    May 2013
    Posts
    2
    Rep Power
    0

    Default Re: javac not recognised

    Bah, after 3 hours of trying, I give up, go to bed and then wake up and try again and it decides to start working. I didn't even turn the laptop off, it just
    went into sleep mode. Computers are cruel.

    But thanks for the help anyway :3

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

    Default Re: javac not recognised

    Glad you've got a functioning system now.

    One thing I was going to add - and will now in case someone happens on this - is that after changing the path it is a good idea to open a new command prompt window.

Similar Threads

  1. Replies: 4
    Last Post: 10-20-2012, 06:15 PM
  2. javac not recognised
    By catherineberridge in forum New To Java
    Replies: 2
    Last Post: 04-27-2011, 01:24 PM
  3. MidiEvent status not recognised by Java
    By JellevM in forum Advanced Java
    Replies: 0
    Last Post: 02-19-2011, 11:01 AM
  4. javac not recognised
    By elobire in forum New To Java
    Replies: 6
    Last Post: 10-05-2010, 05:20 PM
  5. Whats the best recognised java diploma
    By Haze in forum New To Java
    Replies: 0
    Last Post: 01-27-2010, 09:09 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
  •