Results 1 to 4 of 4
  1. #1
    jeremyjjbrown is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default 'javac' is not recognized as an operable program or batch file.

    I'm not able to set the path to javac in Windows 7 64bit home premium

    I've viewed several webpages on this issue and they are all either vague, outdated, or don't solve my problem.

    I have the newest (or very new at least) version of Java installed here.
    C:\Program Files\Java\jdk1.6.0_23\bin

    I know javac is present and working because I can cd to its directory and return "Usage: javac..."
    And, also because Eclipse is running normally.

    I've entered a path for the Java bin in Environment Variables

    User Variable "CLASSPATH" Value "%classpath%"

    and System Variable "JAVA_HOME" Value "C:\Program Files\Java\jdk1.6.0_23\bin"

    I would really like to run javac without having to cd, from .java files I type manually. I've got a lot to learn and so I guess it starts here at the beginning, just running the complier from cmd.

    Thanks.

  2. #2
    new_2_java is offline Member
    Join Date
    Feb 2008
    Posts
    60
    Rep Power
    0

    Default

    add C:\Program Files\Java\jdk1.6.0_23\bin to your PATH environmental variable.

    Also can you paste the result of the following:

    echo %PATH% ... you should see C:\Program Files\Java\jdk1.6.0_23\bin in your PATH variable, if not then that's the problem. Simply add the above reference to your PATH environmental variable.

  3. #3
    jeremyjjbrown is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default

    Quote Originally Posted by new_2_java View Post
    add C:\Program Files\Java\jdk1.6.0_23\bin to your PATH environmental variable.

    Also can you paste the result of the following:

    echo %PATH% ... you should see C:\Program Files\Java\jdk1.6.0_23\bin in your PATH variable, if not then that's the problem. Simply add the above reference to your PATH environmental variable.

    Bamm! Thanks a Bunch.

  4. #4
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    396
    Rep Power
    6

    Default

    New_2_Java becoming srong to Java !
    Mak
    (Living @ Virtual World)

Similar Threads

  1. Replies: 13
    Last Post: 12-31-2010, 01:36 AM
  2. Replies: 19
    Last Post: 11-27-2010, 12:31 AM
  3. Javac not recognized
    By OscarLiu in forum New To Java
    Replies: 8
    Last Post: 06-29-2010, 03:10 PM
  4. Javac is not recognized?
    By Java idiot in forum New To Java
    Replies: 4
    Last Post: 08-03-2009, 06:54 PM
  5. Replies: 8
    Last Post: 11-18-2008, 09:21 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
  •