Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » java.lang.NoClassDefFoundError starting Eclipse on Ubuntu 16.04
java.lang.NoClassDefFoundError starting Eclipse on Ubuntu 16.04 [message #1776015] Thu, 09 November 2017 10:48 Go to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
I just installed Eclipse Oxygen on a fresh Ubuntu 16.04 system. When I run the executable it fails with the following exception:

Exception in thread "logback configurator timer" java.lang.NoClassDefFoundError: ch/qos/logback/core/util/StatusPrinter
    at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:187)
    at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
    at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
    at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
    at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
    at java.base/java.util.TimerThread.run(Timer.java:506)
Caused by: java.lang.ClassNotFoundException: ch.qos.logback.core.util.StatusPrinter cannot be found by org.eclipse.m2e.logback.configuration_1.8.0.20160921-2002
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
    ... 6 more
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged


What is going on here? Do I need to install additional libraries to run Eclipse Oxygen?

Thank you.
Re: java.lang.NoClassDefFoundError starting Eclipse on Ubuntu 16.04 [message #1776041 is a reply to message #1776015] Thu, 09 November 2017 16:48 Go to previous messageGo to next message
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

What did "installed Eclipse Oxygen" actually involve here?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: java.lang.NoClassDefFoundError starting Eclipse on Ubuntu 16.04 [message #1776042 is a reply to message #1776041] Thu, 09 November 2017 16:57 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Nitin Dahyabhai wrote on Thu, 09 November 2017 11:48
What did "installed Eclipse Oxygen" actually involve here?


Hi there Nitin. This is a good question, in my experience there is only one correct procedure to install Eclipse on Ubuntu. I have successfully used this guide since Ubuntu 12.04 until now. On occasion, there have been issues with GTK, but Eclipse would always start up if all these steps were follow carefully.

Thanks.
Re: java.lang.NoClassDefFoundError starting Eclipse on Ubuntu 16.04 [message #1776053 is a reply to message #1776042] Fri, 10 November 2017 07:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Nitin is asking because all the recent "class not found" problems in the forum have been caused by using Java 9 with a pre-Oxygen 1.a release of Eclipse, so we're specifically wondering exactly what you've downloaded from where? I.e., did it come from this page: https://www.eclipse.org/downloads/eclipse-packages/

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: java.lang.NoClassDefFoundError starting Eclipse on Ubuntu 16.04 [message #1776057 is a reply to message #1776053] Fri, 10 November 2017 08:13 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Ed Merks wrote on Fri, 10 November 2017 02:34
Nitin is asking because all the recent "class not found" problems in the forum have been caused by using Java 9 with a pre-Oxygen 1.a release of Eclipse, so we're specifically wondering exactly what you've downloaded from where? I.e., did it come from this page: https://www.eclipse.org/downloads/eclipse-packages/


Hi Ed. Yes, it came from that page, but I am not sure if it is a release prior to 1.a (downloaded it early last week). I shall re-install this latest release and report here the results.

Thank you.
Re: java.lang.NoClassDefFoundError starting Eclipse on Ubuntu 16.04 [message #1776066 is a reply to message #1776057] Fri, 10 November 2017 10:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Latest week's download should be fine. But perhaps the m2e project hasn't properly tested that it works well with Java 9. I would try running it (Eclipse) with Java 8 as a test (if possible and isn't too much work for you). Details are here: https://wiki.eclipse.org/Eclipse.ini

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: java.lang.NoClassDefFoundError starting Eclipse on Ubuntu 16.04 [message #1776068 is a reply to message #1776057] Fri, 10 November 2017 10:59 Go to previous message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
It turns out I had release M2 installed. With release a.1 Eclipse starts up correctly.

Thank you.
Previous Topic:papyrus extension points
Next Topic:NullPointerException in IDE
Goto Forum:
  


Current Time: Fri Apr 19 13:56:54 GMT 2024

Powered by FUDForum. Page generated in 0.04416 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top