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 ?

Romeo Ninov
  • 709
  • 7
  • 13

1 Answers1

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
Romeo Ninov
  • 709
  • 7
  • 13