Eclipse fails to start (java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter)

Bug #1754886 reported by Vidar on 2018-03-10
242
This bug affects 45 people
Affects Status Importance Assigned to Milestone
eclipse (Debian)
Fix Released
Unknown
eclipse (Ubuntu)
High
Unassigned
eclipse-cdt (Ubuntu)
Undecided
Unassigned

Bug Description

I just installed 18.04 from today's March 10th desktop ISO in a VM with all default settings. I proceeded to install Eclipse and build tools with:

    sudo apt-get install eclipse git build-essential

I then ran `eclipse` in a terminal from my home directory (launcher icon behaves same way). I expected Eclipse to open, but instead I got a popup saying:

    An error has occurred. See the log file
    /home/vidar/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1520710304064.log

Meanwhile, the following messages are printed on stderr:

    OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
    Gtk-Message: 11:31:25.572: Failed to load module "canberra-gtk-module"
    Gtk-Message: 11:31:25.619: Failed to load module "canberra-gtk-module"

The file it mentions contains:

    !SESSION Sat Mar 10 11:31:44 PST 2018 ------------------------------------------
    !ENTRY org.eclipse.equinox.launcher 4 0 2018-03-10 11:31:44.078
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
 at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 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)

`eclipse`, `eclipse-jdt` and `eclipse-platform` are all version 3.8.1-11. There are no pending updates after an `apt-get update && apt-get upgrade`. Installing libcanberra-gtk-module got rid of those warnings, but the popup and error message remain.

Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubuntu better.

I can confirm this issue, eclipse 3.8.1-11 fails to start when I attempt to run it on Ubuntu bionic. Based on the error message, I found a corresponding bug report in Debian, so I have attached a bug watch.

Btw, when reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. This adds version numbers and additional information automatically, making it easier to process bug reports. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in eclipse (Ubuntu):
status: New → Confirmed
tags: added: bionic
Simon Quigley (tsimonq2) on 2018-03-11
Changed in eclipse (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
Changed in eclipse (Debian):
status: Unknown → New
Changed in eclipse (Ubuntu):
status: Triaged → In Progress
vital (vsbogd) wrote :

Have the same problem.
Seems root cause is a broken dependcy:

eclipse-platform version is 3.8.1-11 it depends on eclipse-rcp version 3.8.1-11 which in turn depends on libequinox-osgi-java (>= 3.9.1).

But eclipse-platform-data expects libequinox-osgi-java version 3.8.1-11:

$ apt-cache --recurse depends eclipse-platform | less
eclipse-platform
  Depends: eclipse-rcp
eclipse-rcp
  Depends: libequinox-osgi-java

$ apt-cache show eclipse-rcp
Package: eclipse-rcp
Architecture: amd64
Version: 3.8.1-11
Priority: optional
Section: universe/devel
Source: eclipse
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Debian Orbital Alignment Team <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 8094
Depends: default-jre | java5-runtime | java6-runtime, libequinox-osgi-java (>= 3.9.1), libfelix-gogo-command-java, libfelix-gogo-shell-java, libicu4j-49-java (>= 49.1-2), libswt-gtk-3-java (<< 3.9.0~), libswt-gtk-3-java (>= 3.8.0~), libswt-cairo-gtk-3-jni (>= 3.8.0~), libswt-webkit-gtk-3-jni (>= 3.8.0~), libc6 (>= 2.14)

$ dpkg -L eclipse-platform-data | grep config.ini | xargs cat | grep osgi.framework=
osgi.framework=file\:plugins/org.eclipse.osgi_3.8.1.dist.jar
osgi.framework=file\:plugins/org.eclipse.osgi_3.8.1.dist.jar

Is there a workaround for this ?

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in eclipse-cdt (Ubuntu):
status: New → Confirmed
Hans Joachim Desserud (hjd) wrote :

Based on duplicate bug 1777421 it seems the underlying cause might be that the package org.eclipse.core.runtime.adaptor is not installed into /usr/share/eclipse/plugins/.

gimfoxhound (gfoxhound) wrote :

Let's summarize the situation!
Yesterday I was happy to pass from Kubuntu 14.04 -where everything were fine- to Kubuntu 18.04. Today I tried to simply access to another windows desktop. Impossible! Because of 'too much security'! I set up MySQL workbench with MySQL server, with the Workbench client I tried to access to mysql server -port 3306- impossible yet!
I tried to set up Amule, just for the fun, KAD is blocked!
I tried to set up and launch Netbeans, bad idea! It did not work! Netbeans failed to launch. After I set up Eclipse, and I tried to launch Eclipse I retrieved this kind of beautiful message 'An Error has occured....! etc...' the same message shown above. I foresaw to install Weblogic and Websphere, but ...it seems to be a bad idea, regarding my "Hot" experience since yesterday! What the hell did U do ? Is Kubuntu 18.04 be an O/S ?
Why didn't you warn us that Kubuntu 18.04 is only made for connecting funny smartphones, and tablets with Desktops ? But mostly not for other things!

I left the world of Microsoft since 2006. I don't want to be back! Since 2008 I only know the world of Ubuntu/Kubuntu. Yes indeed, in the past there were some bugs. It is normal! But at this scale I could never imagine! It seems to be and indictment!
What should I do now ?

David A. Cobb (superbiskit) wrote :

ME TOO:
bash $ uname -a
Linux BiskitHome.ri.cox.net 4.15.0-24-generic #26-Ubuntu SMP Wed Jun 13 08:44:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
superbiskit@BiskitHome:~
bash $ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
superbiskit@BiskitHome:~

bash $ cat ~/.eclipse/failure-to-launch_2018-07-01_T1324Z.log
!SESSION Sun Jul 01 09:22:31 EDT 2018 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2018-07-01 09:22:32.280
!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)

superbiskit@BiskitHome:~
bash $

Taylor Raack (track16) wrote :

Also affecting me. Are there any updates on when a fix for this might be released?

I don't understand how things as critical as this are not being fixed immediately? Netbeans also fails to start. This is a java problem in both cases.

https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/1775766

https://bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1763091

Jef (e70838) wrote :

Sorry to be another metoo, but the purpose of 18.04.1 LTS is to ensure this does not happen. The problem has been found in march, we are in august.
I use my computer for java development using eclipse. This issue is not even mentioned on https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes.

I understand that bugs hapen and may be hard to fix, but I can not understand the communication around this issue. Maybe it is a bit myopic, but why did 18.04.1 went out before fixing (or at least having a work around for) this issue.

Jef (e70838) wrote :

Silly me! There is a simple work around:
​apt-get purge eclipse ; ​apt autoremove
Download Eclipse Installer on https://eclipse.org/downloads and install it as non root.
My apologizes.

Cruncher (ubuntu-wkresse) wrote :

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891956#47 for the reasons behind why this is not being fixed

Makis Livadas (glivadas) wrote :

On Raspberry-Pi and Ubuntu 18.04 LTS no simple work around for me here. Only work around on Pi is to use the Rasbian interface. So this should be a critical bug for 18.04 LTS.

Michael Gorriz (mgorriz) wrote :

I guess you guys need explicitly Eclipse 3.8 . Just go to Ubuntu-Software, deinstall 3.8 and install Eclipse 4.8 (Photon) which is the default package on the Ubuntu-Software.

Hi Michael,

Where do you see that Eclipse 4.8 is the default on Ubuntu-Software?

As far as I can tell, Eclipse 3.8.1 is the default for Ubuntu Bionic (18.04 LTS).
See here: https://packages.ubuntu.com/bionic/eclipse

I didn't notice an entry for Eclipse in bionic-updates, either:
https://packages.ubuntu.com/bionic-updates/allpackages

I have had success installing Eclipse manually, but I think the issue is that the package manager installs software that doesn't run.

Thanks for your help.

eclipse still doesn't start on Ubuntu 18.04 all patches applied.

Is this going to be fixed at all?

Jim (dgtlrift) wrote :

Another month and still no fix... when will this be fixed?

Jose Maria (jmvillalba) wrote :

The workarround purposed by Jef (e70838) at answer #11 works for me.

Thak you very much.

tags: added: comsic
tags: added: cosmic
removed: comsic
summary: - Eclipse fails to start on fresh 18.04 installation
+ Eclipse fails to start (java.lang.ClassNotFoundException:
+ org.eclipse.core.runtime.adaptor.EclipseStarter)
Nguyen Duc Nhan (gernhan) wrote :

I also encounter this problem: here is the log created when i failed to start eclipse:

!SESSION Sun Mar 31 15:24:01 ICT 2019 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-03-31 15:24:01.437
!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)

ilya (natiahin) wrote :

Same problem here ubuntu 18.04:

SESSION Fri Apr 05 04:58:36 EEST 2019 -----------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-04-05 04:58:36.883
!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)

Changed in eclipse (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.