Categories: Windows Commands

User questions about fixing javac not recognized error

Of all my posts, the one that gets most number of comments is – “Javac is not recognized as internal or external command”

Due to heavy incoming comments, I stopped approving them long back to avoid the page become a giant one. However there are still users who’ve been commenting that they were not able to fix the issue. So creating this separate page to receive all such comments and provide help fix the issue. Others can also pitch in and help answer the questions/comments.

Go ahead and use the comments section below to ask your question.

Srini

View Comments

  • I have tried all of the above steps but when I try to install netbeans I am still getting the error message that it can't find Java. I ran path in CMD and java is there and it is set correctly in environment variables under JAVA_HOME and PATH
    C:\Program Files\Java\jdk-11.0.2\bin
    the error message is JDK 7 or above is not found.
    Please help?

  • It's still not working. I have followed all the steps and I can see 'JDK' when I type 'set path'. If I type 'java' I get a list of java commands. If I type 'javac' I get 'javac is not recognized as an internal or external command, operable program or batch file'

    Does anyone have any idea on what is happening and how to fix it?

  • C:\Users\SudoX64>echo %Path%
    C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\; C:\Users\SudoX64\AppData\Local\Programs\Python\Python37-32\Scripts; C:\Program Files\Java\jre1.8.0_201\bin;C:\Users\SudoX64\AppData\Local\Programs\Python\Python37-32\Scripts\;C:\Users\SudoX64\AppData\Local\Programs\Python\Python37-32\; C:\java\bin

    I made a new folder in c and installed java in it.
    Setting the path did not help and i'm having javac not recognized.... Please help

  • I have installed jdk 1.8 on my system. However ,I am also getting the same error for javac. When tried to follow the steps mentioned, I am not able to edit the System variables while setting the path.
    Kindly advise.
    Thanks in advance!

    • Hmm..If you were able to install, you must be having admin privileges and so should be able to edit system variables. Please elaborate at what step it's stopping you from editing.
      Also, have you tried setting the path from CMD as well?

  • Very helpful tips,
    I will use the same to solve issues of my company Indiaaccess Servers and Hostasp Servers

    Thanks for your info

  • Jdk.1.8.0_51\bin should read Jdk1.8.0_51\bin

    There's an extra "." in your original line. I had "program files" written as "programfiles" without the space and I couldn't figure it out for a long time. Make sure every folder name is properly written out.

Share
Published by
Srini

Recent Posts

Add new user account from command line (CMD)

Adding users from command line is much easier than going through the UI. It saves…

4 years ago

Delete directory from command line [Rmdir]

Do you want to delete a directory from Windows command prompt(CMD)? This post explains how…

4 years ago

TaskKill: Kill process from command line (CMD)

We can kill a process from GUI using Task manager. If you want to do…

4 years ago

Kill Chrome from command line

Chrome is definitely the stable browser compared to other ones and it has been my…

4 years ago

Find windows OS version from command line

Windows has multiple command line utilities that can help find the version of the Windows…

4 years ago

How to check if Windows 32 or 64 bit?

There are multiple ways to check whether a Windows computer is running 32-bit OS or…

7 years ago