Eclipse无法通过应用程序启动器启动 [英] Eclipse fails to start via an application launcher

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

问题描述



问题是:我尝试使用 elcipse-3.5.0(伽利略)发生错误,通过点击其启动器启动它。诅咒听起来像这样:


Java运行时环境(JRE)或

Java开发Kit(JDK)必须是

才能运行Eclipse。否



之后找到以下位置时发现Java虚拟机:

/home/emanemos/bin/eclipses/eclipse-3.5.0 / jre / bin / java

当前路径中的java


然而,一切都eclipse从控制台开始平滑。



在安装eclipse之前,我已经安装了jdk1.6.0_16。我还创建了 $ JAVA_HOME 变量并更改了我的$ PATH :


$ echo $ JAVA_HOME

/usr/lib/java/jdk1.6.0_16

$ echo $ PATH

/ home / emanemos / bin:/ USR / local / sbin中:在/ usr / local / bin目录:/ usr / sbin目录:在/ usr / bin中:/ sbin目录:/ bin中:在/ usr /游戏:/usr/lib/java/jdk1.6.0_16/jre/bin


所以,我的终端知道什么是 java


$ java -version
java版本
1.6.0_16
Java(TM)SE运行时
环境(build 1.6 .0_16-b01)

Java HotSpot(TM)客户端虚拟机(build
14.2-b01,混合模式,共享)


然后,从〜/ bin / eclipses 目录中的 .tar.gz 包中提取了一个文件夹eclipse。我将文件夹的名称 eclipse 更改为 eclipse-3.5.0 ,并再次更改了 $ PATH


$ echo $ PATH

/home/emanemos/bin/eclipses/eclipse-3.5.0:/home/emanemos/bin:/usr/local/ sbin:/ usr / local / bin:/ usr / sbin:/ usr / bin:/ sbin:/ bin:/ usr / games:/usr/lib/java/jdk1.6.0_16/jre/bin


从这一刻起,我很幸运地通过命令 eclipse 从控制台启动eclipse。



然而,我对使用eclipse的应用程序启动器感到绝望。



提前感谢。我会感谢任何帮助。

解决方案

将其添加到eclipse.ini中: -



-vm
$ Java_home / jdk1.5.0_14 / bin / javaw.exe


Hi everybody.

The problem: elcipse-3.5.0 (Galileo) spits with an error when I try to launch it by clicking its launcher. The curse sound like this:

A Java Runtime Environment (JRE) or
Java Development Kit (JDK) must be
available in order to run Eclipse. No
Java virtual machine was found after
searching the following locations:
/home/emanemos/bin/eclipses/eclipse-3.5.0/jre/bin/java
java in your current PATH

However, everything goes smoothly when eclipse is started from console.

Before installing eclipse I've installed jdk1.6.0_16. I also created the $JAVA_HOME variable and changed my $PATH:

$ echo $JAVA_HOME
/usr/lib/java/jdk1.6.0_16
$ echo $PATH
/home/emanemos/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/java/jdk1.6.0_16/jre/bin

So that, my terminal got to know what java is:

$ java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

Then a folder eclipse was extracted from .tar.gz package under the directory ~/bin/eclipses. I changed the folder's name eclipse to eclipse-3.5.0 and changed $PATH again:

$ echo $PATH
/home/emanemos/bin/eclipses/eclipse-3.5.0:/home/emanemos/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/java/jdk1.6.0_16/jre/bin

From this moment I was blessed to launch eclipse from console by the command eclipse.

However, I feel desperate about using the eclipse's application launcher.

Thanks in advance. I would be grateful for any help.

解决方案

Add this to eclipse.ini:-

-vm $Java_home/jdk1.5.0_14/bin/javaw.exe

这篇关于Eclipse无法通过应用程序启动器启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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