java javac.exe not found in JDK 1.8

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33943592/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 22:19:41  来源:igfitidea点击:

javac.exe not found in JDK 1.8

javajava-8javac

提问by Kosmos

I am installed JDK 1.8 in Windows 7x64. But javac.exe not found in /bin folder. How to fix this problem? Anybody resolve it?

I am installed JDK 1.8 in Windows 7x64. But javac.exe not found in /bin folder. How to fix this problem? Anybody resolve it?

Paths set. enter image description here

Paths set. enter image description here

回答by Kosmos

Fixed it installed JDK again. An installer ask you install JRE. Need to decline it and all be fine.

Fixed it installed JDK again. An installer ask you install JRE. Need to decline it and all be fine.

Thanks all.

Thanks all.

P.S. Read body post attentively. Always.

P.S. Read body post attentively. Always.

回答by Luiggi Mendoza

javacis inside bin folder. You should change PATHto reflect that. Make sure the content of PATHlooks like this:

javacis inside bin folder. You should change PATHto reflect that. Make sure the content of PATHlooks like this:

PATH = %JDK_HOME%\bin;... (rest of the value of PATH)

回答by Philipp Sander

set PATH=%PATH%;%JDK_HOME%\bin;

this should solve your problem. it adds the bin directory to your path variable and makes all exe files excutable without using the fully qualified path.

this should solve your problem. it adds the bin directory to your path variable and makes all exe files excutable without using the fully qualified path.