简体   繁体   中英

Javac is not recognized. (Already set path)

guys, I can't compile or run any of my programs in the command line. I set the location of my java.exe in paths but that did nothing. Any other fixes?

My path looks like this:

C:\\Program Files (x86)\\Java\\jre1.8.0_40\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;D:\\ATI.ACE\\Core-Static;D:\\bin;D:\\QuickTime\\QTSystem\\;D:\\Python;D:\\Python\\Lib;D:\\Python\\DLLs;D:\\Python\\Lib\\lib-tk;

You need to set the JDK path

C:\\Program Files (x86)\\Java\\jdk1.8.0_40\\bin;C:\\Program Files (x86)\\Java\\jdk1.8.0_40\\lib;

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