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
javac.exe not found in JDK 1.8
提问by Kosmos
回答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
javac
is inside bin folder. You should change PATH
to reflect that. Make sure the content of PATH
looks like this:
javac
is inside bin folder. You should change PATH
to reflect that. Make sure the content of PATH
looks 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.