0

I have installed eclipse in my new system Ubuntu 18.04 LTS with apt-get install eclipse; but when i'm trying to execute eclipse I got this message on dialog box:An error occured And the app stops running.

And in the the log file from Eclipse I see this:

!SESSION Thu Apr 11 12:43:08 GMT 2019 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-04-11 12:43:08.394
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Could someone give an help ?

1

1 Answer 1

0

Based on this answer you can do this:

In your config.ini file of eclipse eclipse\configuration\config.ini check this three things:

osgi.framework=file\:plugins\\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator\\bundles.info

And check whether these jars are in place or not, the jar files depend upon your version of eclipse

You can install OpenJDK 8 using instructions from this answer. Also there you will find the way to use alternatives.

sudo update-alternatives --config java
sudo update-alternatives --config javac
12
  • It still confuse for me; I don't understand exactly
    – hackthatos
    Apr 12, 2019 at 13:49
  • Check if you have such records in ini file. And if the jar files are on those locations Apr 12, 2019 at 13:55
  • This is what i have in the .ini file
    – hackthatos
    Apr 12, 2019 at 14:01
  • I don't know if it is the same; this is the .ini file I have: osgi.framework=file\:plugins/org.eclipse.osgi_3.8.1.dist.jar osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.301.dist.jar@1\:start org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info the main differrence is the number replaced with dist
    – hackthatos
    Apr 12, 2019 at 14:08
  • @hackthatos, seems you have them all. Did you check the required version of jdk and what version do you have installed? Apr 12, 2019 at 14:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .