简体   繁体   English

全新安装后,eclipse IDE无法启动,但会抱怨

[英]eclipse IDE after a brand new install not start but complains

Premise: I am constrained to work on a very old Ubuntu 10.04LTS(aka Lucid Lynx) After have downloaded (now) Oracle's most used 1.8 Java(and latest 1.8 release: 1.8.0_172) decompressed it and set it correctly in PATH in bash i downloaded and decompressed in $ECLIPSE_HOME the latest runnable(cause eclipse releases >= Oxygen require a newer gtk library that actually can't have in that PC) eclipse for my machine: eclipse-java-neon-3-linux-gtk-x86_64.tar.gz When i tried to execute eclipse instead of a running instance i got that error dialog message 前提:我只能在非常旧的Ubuntu 10.04LTS(又名Lucid Lynx)上工作。下载(现在)Oracle最常用的1.8 Java(以及最新的1.8版本:1.8.0_172)后,将其解压缩并正确设置在bash的PATH中我在$ ECLIPSE_HOME中下载并解压缩了最新的可运行文件(因为eclipse版本> = Oxygen需要在该PC上实际上没有的较新的gtk库)eclipse:eclipse-java-neon-3-linux-gtk-x86_64 .tar.gz当我尝试执行eclipse而不是正在运行的实例时,出现该错误对话框消息

JVM terminated. Exit code=1
/usr/bin/java
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.platform_4.6.3.v20170301-0400/splash.bmp
-launcher /home/harrykar/Java8/eclipseJavaNeon64/eclipse
-name Eclipse
--launcher.library /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740/eclipse_1618.so
-startup /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.appendVmargs
-exitdata 6e8037
-product org.eclipse.epp.package.java.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar 

Anyone has a clue? 有人知道吗? TIA TIA

Best Regards Harry GT Kar 最好的问候哈里·GT·卡尔

All that time i was focused to search in Web for a solution (but without luck) and not dig into the eclipse.ini file assumed it correct. 一直以来,我一直专注于在Web上搜索解决方案(但是没有运气),并且没有深入研究eclipse.ini文件(假定它是正确的)。 My eclipse.ini after eclipse installation looked like that: eclipse安装后,我的eclipse.ini如下所示:

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m

I notice here missed the path to java(JDK) actually in use(don't forget i used a custom installation of java - in my home directory - not that provided from the Ubuntu system in /usr/bin/ as the error message correctly reported) So the solution was simply to add 2 lines in the eclipse.ini(ie the custom path to JDK). 我在这里注意到错过了实际上正在使用的java(JDK)的路径(别忘了我在主目录中使用了java的自定义安装-不是从/ usr / bin /中的Ubuntu系统提供的错误安装,因为错误消息正确因此,解决方案只是在eclipse.ini中添加2行(即JDK的自定义路径)。

Beware it's important to write these lines before the -vmargs as shown below (or also delete -vmargs if not use it) 请注意,如下所示,在-vmargs之前编写这些行很重要(或者,如果不使用-vmargs,则也要删除它们)

 -vm
/home/harrykar/Java8/jdk1.8.0_172/bin
-vmargs

And that's it eclipse now works as intended 就是这样,蚀现在按预期工作

Best Regards 最好的祝福

Harry GT Kar 哈里·GT·卡尔

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM