javaw.exe找不到路径 [英] javaw.exe cannot find path
问题描述
可能重复:
由于环境变量,Eclipse无法打开
我正在使用eclipse IDE,我试图运行一个项目,但是我收到了错误。它说javaw.exe无法运行。
I'm using eclipse IDE and I tried to run a project, but I'm getting error. It says the javaw.exe cannot be run.
我重新安装了Java,现在我已经安装了JRE 7并安装了Jdk,但仍然没有运气。
I reinstalled Java, now I have JRE 7 and also I installed Jdk, but still no luck.
我打开cmd运行javaw.exe,它说:
I opened cmd to run javaw.exe and it says:
C:\Program Files\Java \ jre7 \\ \\ bin> javaw.exe
系统找不到文件C:\Program Files \ Java \ jre7 \ bin\javaw.exe
C:\Program Files\Java\jre7\bin>javaw.exe The system cannot find the file C:\Program Files\Java\jre7\bin\javaw.exe
我认为eclipse安装正确,但我在使用Java方面遇到了一些麻烦。我重新安装了Java 4次。我不知道该怎么办。我无法转发我正在努力理解的教程。
I think eclipse is installed correctly, but I have some trouble with Java. I reinstalled Java for 4 times. I don't know what to do. I can't forward with the tutorial that I'm trying to understand.
推荐答案
请务必从这里:
同时创建 PATH
环境变量这样的电脑(如果它还不存在):
Also create PATH
enviroment variable on you computer like this (if it doesn't exist already):
- 右键点击我的电脑/电脑
- 属性
- 高级系统设置(或仅高级)
- 环境变量
- 如果<$ 用户变量中不存在c $ c> PATH 变量单击
新
(变量名称:PATH,变量值:C:\Program Files\Java\jdk1.8.0\bin;
< - 请查看正确的版本,这可能因Oracle不断更新Java而有所不同。;
最终可以为PATH
变量分配多个值。 - 单击确定!完成
- Right click on My Computer/Computer
- Properties
- Advanced system settings (or just Advanced)
- Enviroment variables
- If
PATH
variable doesn't exist among "User variables" clickNew
(Variable name: PATH, Variable value :C:\Program Files\Java\jdk1.8.0\bin;
<-- please check out the right version, this may differ as Oracle keeps updating Java).;
in the end enables assignment of multiple values toPATH
variable. - Click OK! Done
为确保一切正常,请打开CMD提示符并输入: java -version
进行检查对于Java版本和 javac
以确保编译器响应。
To be sure that everything works, open CMD Prompt and type: java -version
to check for Java version and javac
to be sure that compiler responds.
我希望这会有所帮助。祝你好运!
I hope this helps. Good luck!
这篇关于javaw.exe找不到路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!