user121196
user121196

Reputation: 31060

unable to start eclipse under java 1.8

I am unable to start eclipse after a java 1.8 upgrade. the error screenshot is attached. Here's my eclipse configuration setting. how do I fix this?

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Dhelp.lucene.tokenizer=standard
-Xms256m
-Xmx2048m
-Xverify:none


enter image description here

Upvotes: 7

Views: 6027

Answers (1)

Tariq Khan
Tariq Khan

Reputation: 6136

Did the following to run eclipse with 1.8 you change the version accordingly to 1.7

  1. sudo add-apt-repository ppa:openjdk-r/ppa
  2. sudo apt-get update
  3. sudo apt-get install openjdk-8-jdk
  4. Run $ sudo update-alternatives --config java

and enter the number for which JDK to use of your choice. Select option "0" or the one you need.

enter image description here

  1. Check java version "java -version

Now you should be able to run Eclipse

Upvotes: 3

Related Questions