Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Javac Not recognized?

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Location
    California, USA
    Posts
    4
    My Mood
    Amazed
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Javac Not recognized?

    Hello community,
    As I am just now starting out to try and learn Java language, coding, and programming I am trying to setup my computer to be able to work/run my java items. I am currently following a group of tutorial videos I found and during video 4 I found myself running into a bit of an issue, when in command prompt trying to do a simple compile method "Javac" I ran into this error message "javac is not recognized as an internal or external command, operable program or batch file" I'm simply wondering what could be wrong, and what is the best method to fix this. Currently I have, or think I have, JRE8 Installed onto my PC running Windows 8 Professional. If someone could help me, I would be greatly appreciative. Thank you!
    [Dream Big and Dive In]


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    563
    My Mood
    Sleepy
    Thanks
    9
    Thanked 82 Times in 76 Posts

    Default Re: Javac Not recognized?

    You have to modify your system's PATH variable. Extend it by the path to your JRE's bin folder.

  3. #3
    Junior Member
    Join Date
    Jun 2013
    Location
    California, USA
    Posts
    4
    My Mood
    Amazed
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Javac Not recognized?

    Thank you for the response, I went ahead and changed the path file to my bin file within the jre8 folder. This did fix half of my problem, but only half. Now I am able to enter in the Java command in cmd, but not the javac command.
    [Dream Big and Dive In]

  4. #4
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    563
    My Mood
    Sleepy
    Thanks
    9
    Thanked 82 Times in 76 Posts

    Default Re: Javac Not recognized?

    Ach, sorry, you need the path to the jdk's bin folder then.

  5. The Following User Says Thank You to PhHein For This Useful Post:

    Future_Programmer (June 12th, 2013)

  6. #5
    Junior Member
    Join Date
    Jun 2013
    Location
    California, USA
    Posts
    4
    My Mood
    Amazed
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Javac Not recognized?

    Ahhh I see now. Hehe thank you for your help!
    [Dream Big and Dive In]

Similar Threads

  1. Replies: 1
    Last Post: September 9th, 2012, 09:36 PM
  2. Replies: 4
    Last Post: August 17th, 2012, 10:37 PM
  3. WSDL Classes not recognized
    By jb1111 in forum Web Frameworks
    Replies: 0
    Last Post: March 20th, 2012, 08:37 PM
  4. IP Can't Recognized
    By Voipswitch1 in forum Java Networking
    Replies: 1
    Last Post: February 8th, 2012, 05:03 PM
  5. javac help
    By mjpam in forum Java Theory & Questions
    Replies: 7
    Last Post: February 16th, 2011, 09:46 AM