找不到Javac [英] Javac is not found
问题描述
我运行Windows 8,我不能让javac工作。
I'm running Windows 8 and I can not get javac to work.
我已将环境变量中的PATH设置为
I have set my PATH in environmental variables to
C:\Program文件(x86)\Java\jdk1.7.0_17\bin
我尝试过和没有';'徒劳无功。
I have tried both with and without ';' but to no avail.
我最近在我的桌面上有这个问题,并添加;工作,但不是在这种情况下。
I recently had this issue on my desktop and adding ; worked but it's not in this case.
我已经确定javac确实存在于bin中。
I have made sure that javac does exist in the bin too.
我们非常感谢您对修正建议。
Any suggestions on fixes would be greatly appreciated.
EDITS
echo%PATH%:
EDITS echo %PATH% gives:
C:\Users\Arktri\Desktop>echo %PATH%
C:\Program Files (x86)\Intel\iCLS Client\;
C:\Program Files\Intel\iCLS Client\;
C:\Windows\system32;C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;
C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;
C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;
C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;
C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;
C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;;
C:\Program Files (x86)\Java\jre7\bin
确切的错误是:'javac'不被识别为内部或外部命令,可操作的程序或批处理文件。
And the exact error is: 'javac' is not recognized as an internal or external command, operable program or batch file.
推荐答案
就我所见,你在 PATH
中有 JRE
,而不是 JDK
。
As far as I can see you have the JRE
in your PATH
, but not the JDK
.
从命令提示符尝试:
set PATH=%PATH%;C:\Program Files (x86)\Java\jdk1.7.0_17\bin
然后再次尝试 javac
- 如果这个工作,你将需要永久修改你的环境变量以具有 PATH
也包括 JDK
。
Then try javac
again - if this works you'll need to permanently modify your environment variables to have PATH
include the JDK
too.
这篇关于找不到Javac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!