Javac is not found(找不到 Javac)
问题描述
I'm running Windows 8 and I can not get javac to work.
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.
I have made sure that javac does exist in the bin too.
Any suggestions on fixes would be greatly appreciated.
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
And the exact error is: 'javac' is not recognized as an internal or external command, operable program or batch file.
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
Then try javac
again - if this works you'll need to permanently modify your environment variables to have PATH
include the JDK
too.
这篇关于找不到 Javac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:找不到 Javac
基础教程推荐
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- 降序排序:Java Map 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01