Results 1 to 8 of 8
Like Tree1Likes
  • 1 Post By awinston

Thread: javac not recognized

  1. #1
    kris972 is offline Member
    Join Date
    Sep 2012
    Posts
    4
    Rep Power
    0

    Default javac not recognized

    Hello,
    For my programming class at college, I am required to write code in java in a text editor and then, utilizing the command prompt, compile and run that java file.
    However, when I try to compile the java program using javac, I get "'javac' is not recognized as an internal or external command, operable program or batch file."
    I realize that this is most likely a problem with the "path" environment variable. But when I tried adding ;C:\Program Files\Java\jdk1.6.0_33\bin; to the end, command prompt still failed to recognize javac. I am using java version 6, update 33 because I am running a 32-bit system, and the newest version of java is only made for 64-bit systems.
    I have tried everything I can think of, have googled relentlessly, and can't seem to figure out what I am doing wrong. Any help with this would be greatly appreciated.

  2. #2
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Re: javac not recognized

    Did you restart command prompt after updating your path variable?
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

  3. #3
    kris972 is offline Member
    Join Date
    Sep 2012
    Posts
    4
    Rep Power
    0

    Default Re: javac not recognized

    yes, I made sure to do that. Got all excited when I thought of it, too. But it still doesn't work!

    I'm looking for the path file, and noticed that I seem to have installed the jre instead of the jdk...but I can't seem to find a jdk for 32 bit.
    Last edited by kris972; 09-20-2012 at 12:50 AM.

  4. #4
    kris972 is offline Member
    Join Date
    Sep 2012
    Posts
    4
    Rep Power
    0

    Default Re: javac not recognized

    should I try restarting my computer, or would that not do anything?

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is online now Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,242
    Rep Power
    19

    Default Re: javac not recognized

    I am using java version 6, update 33 because I am running a 32-bit system, and the newest version of java is only made for 64-bit systems.
    Nonsense. I have 1.7.0_06, on a 32-bit system. Where did you pick up this misinformation?

    Have you located the javac.exe file?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Re: javac not recognized

    Quote Originally Posted by DarrylBurke View Post
    Nonsense. I have 1.7.0_06, on a 32-bit system. Where did you pick up this misinformation?
    db
    Possibly the fact that the 32-bit download is labelled as X86 rather than X32 on the download page.
    DarrylBurke likes this.
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

  7. #7
    kris972 is offline Member
    Join Date
    Sep 2012
    Posts
    4
    Rep Power
    0

    Default Re: javac not recognized

    yeah, that was it. man, now i feel stupid. haha. well, i ended up fixing it by downloading that 32-bit version of the jdk. thanks for the help.

  8. #8
    dustin is offline Member
    Join Date
    Aug 2012
    Posts
    1
    Rep Power
    0

    Default Re: javac not recognized

    So, the issue is sorted out with locating the java file.Great.

    ------------------
    production scheduling

Similar Threads

  1. javac is not recognized
    By double_007 in forum New To Java
    Replies: 10
    Last Post: 09-07-2012, 02:26 AM
  2. 'javac' is not recognized
    By adm in forum New To Java
    Replies: 2
    Last Post: 01-31-2012, 09:24 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. javac command not recognized
    By sunshine39 in forum New To Java
    Replies: 7
    Last Post: 03-04-2009, 03:54 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
  •