找不到Javac [英] Javac is not found

查看:44
本文介绍了找不到Javac的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行的是 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 Files (x86)Javajdk1.7.0_17in

无论有没有';'我都试过了但无济于事.

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.

编辑echo %PATH% 给出:

EDITS echo %PATH% gives:

C:UsersArktriDesktop>echo %PATH%

C:Program Files (x86)InteliCLS Client;
C:Program FilesInteliCLS Client;
C:Windowssystem32;C:Windows;
C:WindowsSystem32Wbem;
C:WindowsSystem32WindowsPowerShellv1.0;
C:Program Files (x86)IntelOpenCL SDK2.0inx86;
C:Program Files (x86)IntelOpenCL SDK2.0inx64;
C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;
C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;
C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;
C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;;
C:Program Files (x86)Javajre7in

确切的错误是:'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.

从命令提示符试试这个:

From a command prompt try this:

set PATH=%PATH%;C:Program Files (x86)Javajdk1.7.0_17in

然后再次尝试 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆