Eclipse没有启动 [英] Eclipse is not starting

查看:134
本文介绍了Eclipse没有启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse从终端开始,但是当我尝试从gui启动它时,它表示没有找到java运行时环境。



环境变量是:



JAVA_HOME =/ opt / jdk1.6.0_20
PATH = $ PATH:/ opt / jdk1.6.0_20 / bin



还有一件事到目前为止,我通常将jre文件夹从jdk复制到eclipse目录,这是正常的,但实际的方式。我的意思是这不是标准的方法。



提前感谢

解决方案

编辑eclipse.ini(从Eclipse文件夹),并在开头添加以下内容:

  -vm 
C:/Java/jdk1.6.0_22/bin

其中C:/ Java / jdk1.6.0_22 / bin应该是你到java bin目录的路径。
保持两行。


Eclipse starts from terminal but when i try to start it from gui then it says java runtime environment don't found.

Environment variables are:

JAVA_HOME="/opt/jdk1.6.0_20" PATH=$PATH:"/opt/jdk1.6.0_20/bin"

And one more thing so far i normally copy jre folder from jdk to eclipse directory, which works fine but what is actual way. i mean this won't be standard way to do that.

Thanks in advance

解决方案

Edit eclipse.ini (from the Eclipse folder) and add the following at the beginning:

-vm
C:/Java/jdk1.6.0_22/bin

where C:/Java/jdk1.6.0_22/bin should be your path to the java bin directory. Keep it on two lines.

这篇关于Eclipse没有启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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