Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to start eclipse under java 1.8

Tags:

java

eclipse

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

like image 291
user121196 Avatar asked Dec 17 '14 20:12

user121196


Video Answer


1 Answers

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

like image 167
Tariq Khan Avatar answered Sep 28 '22 12:09

Tariq Khan