简体   繁体   中英

Javac is not recognized

Recently I started a fresh install of windows 10, however javac seemed to stop working.

    C:\WINDOWS\system32>javac -version
'javac' is not recognized as an internal or external command,
operable program or batch file.

Here is a screenshot of my path: 在此处输入图片说明

Thanks! Please tell me if you have the solution.

Make once again sure that javac is in the PATH that is set for your shell. Watch the output of echo %PATH% . I bet JDK's bin directory is not listed there.

If you set the PATH via System Settings in Windows, you have to close and re-open the terminal to make the changes take effect.

EDIT: Also remove the semikolon from the path to the JDK. Then it should work.

Try to rename ,Path' to ,PATH'

Hope that helpes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM