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


- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01