使用 JRE 路径设置 Eclipse [英] Setting up Eclipse with JRE Path

查看:32
本文介绍了使用 JRE 路径设置 Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载并解压了 Eclipse.我在以下目录中有 Eclipse:C:Applicationseclipse.当我尝试运行可执行文件时,我收到以下消息:

I have downloaded and extracted Eclipse. I have Eclipse in the following directory: C:Applicationseclipse. When I try and run the executable , I get the following message :

我目前有以下文件夹:

C:Program Files (x86)Javajre7

我是否需要为我的 Windows 7 操作系统设置一些环境变量才能运行 Eclipse?如果是这样,我可以帮忙吗?如果没有,我能否请您帮忙让 Eclipse 运行.

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 .

编辑

我已更改快捷方式以包含虚拟机的路径,现在出现此错误:

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

推荐答案

你可以在 eclipse.ini 中加入这一行:

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>

但无论如何设置 JAVA_HOMEJRE_HOME 是值得的,因为它可能无法像路径环境指向不同的 Java 版本一样工作.

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.

因为下一个抱怨的是Maven等

Because the next one to complain will be Maven, etc.

这篇关于使用 JRE 路径设置 Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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