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

    Default 'javac' is not recognized as an internal or external command or batch file.

    I've Googled this problem time and time, and the majority of the results are this page. I've seen about 10 different posts about my problem (in the title) and tried all of the solutions people have posted (all of them saying to add the environment variable to CLASSPATH). It still does not work. Here is was my CLASSPATH variable looks like:

    C:\Program Files\Java\jdk1.6.0_25\;C:\Program Files\Java\jdk1.6.0_25\bin\

    I have JDK 6u25 64-bit and both 32-bit and 64-bit versions of Java 6u30 installed (my computer is picky and needs both to work properly).

    Can anyone help me?

    Any help will be thanked!

    P.S: It WAS just 'javac' not working, but while writing this post I tried it with JDK 7u1, which broke 'java' (even after uninstall), in turn breaking a lot of my things that I need.

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,371
    Blog Entries
    7
    Rep Power
    20

    Default Re: 'javac' is not recognized as an internal or external command or batch file.

    You must've misread the replies on this subject: you have to set your PATH environment variable, not the CLASSPATH variabe; you have to add the directory where your javac.exe file is stored.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    Byte2908 is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Re: 'javac' is not recognized as an internal or external command or batch file.

    Ah.. derp XD. Thanks for the swift reply! I'll try that now.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default Re: 'javac' is not recognized as an internal or external command or batch file.

    Go through this Lesson: Common Problems (and Their Solutions) (The Java™ Tutorials > Getting Started)

    Any 'solutions' that talk about adding to the CLASSPATH are just wrong. CLASSPATH has nothing whatsoever to do with the error message that is the subject of your thread.

    If you don't have any third party software that relies on the CLASSPATH, remove it. If you retain it, ensure that it starts with the current working directory, represented by a dot '.'

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

Similar Threads

  1. Replies: 25
    Last Post: 06-23-2012, 11:30 AM
  2. Replies: 1
    Last Post: 10-16-2011, 11:15 PM
  3. Replies: 19
    Last Post: 11-27-2010, 12:31 AM
  4. Replies: 8
    Last Post: 11-18-2008, 09:21 AM
  5. 'javac' is not recognized as an internal or external command
    By sam_1032002@btopenworld.c in forum New To Java
    Replies: 3
    Last Post: 10-18-2008, 02:40 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
  •