使用JRE路径设置Eclipse [英] Setting up Eclipse with JRE Path
问题描述
C:\Applications\eclipse
。当我尝试运行可执行文件时,我收到以下消息:
C:\程序文件(x86)\Java\jre7
我需要为我的Windows 7操作系统设置一些环境变量来让Eclipse运行吗?如果是的话,请问有什么帮助吗?如果没有,请帮我一下帮助Eclipse运行。
编辑
我已经更改了快捷方式以包含虚拟机的路径,现在我收到这个错误:
http://www.canning.co.nz/Eclipse/Eclipse_Message2.png
您可以将此行添加到 eclipse.ini
:
-vm
D:/work/Java/jdk1.6.0_13/bin/javaw.exe< - 更改为您的JDK实际路径
-vmargs < - 需要在-vm< path>之后
但是值得设置 JAVA_HOME
和 JRE_HOME
无论如何,因为它可能无法像路径环境指向不同的java版本。
因为下一个抱怨将是Maven等。
I have downloaded and extracted Eclipse. I have Eclipse in the following directory: C:\Applications\eclipse
. When I try and run the executable , I get the following message :
I currently have the following folder:
C:\Program Files (x86)\Java\jre7
Do I need to set up some environment variables for my Windows 7 OS to get Eclipse to run ? If so , may I please have some help to do this ? If not , can I please have some help to get Eclipse to run .
EDIT
I have changed the shortcut to include the path to the Virtual Machine , and am now getting this error :
http://www.canning.co.nz/Eclipse/Eclipse_Message2.png
You can add this line to eclipse.ini
:
-vm
D:/work/Java/jdk1.6.0_13/bin/javaw.exe <-- change to your JDK actual path
-vmargs <-- needs to be after -vm <path>
But it's worth setting JAVA_HOME
and JRE_HOME
anyway because it may not work as if the path environment points to a different java version.
Because the next one to complain will be Maven, etc.
这篇关于使用JRE路径设置Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!