Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » java.lang.NoClassDefFoundError(java.lang.NoClassDefFoundError: org/eclipse/debug/core/DebugPlugin)
java.lang.NoClassDefFoundError [message #1857273] Fri, 27 January 2023 14:45 Go to next message
Arsen Davtyan is currently offline Arsen DavtyanFriend
Messages: 17
Registered: May 2022
Junior Member
Hi everyone

I am stuck on the following issue. I took the org.eclipse.ltk.ui.refactoring plugin from the plugins of my eclipse and add the following line.
DebugPlugin debugPlugin = DebugPlugin.getDefault();
The DebugPlugin is located in org.eclipse.debug.core so I add this jar to MANIFEST.MF under Require-Bundle: in the last line add.
org.eclipse.debug.core;bundle-version="3.18.300"

When I run eclipse from my eclipse plugin everything works fine. I export my org.eclipse.ltk.ui.refactoring_3.12.0.v20210618-1953.jar and then replace it in my plugins list. When I start eclipse as soon as I try to use my code NoClassDefFoundError immediately throws.

I made a small test project using a class from another jar. I get the same error, but when I set the classpath everything works. I tried to set classpath for eclipse plugins, but it doesn't help.

Thanks in advance for any ideas or help.
Re: java.lang.NoClassDefFoundError [message #1857287 is a reply to message #1857273] Sat, 28 January 2023 08:01 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32866
Registered: July 2009
Senior Member
It's not entirely clear what you mean by "then replace it in my plugins list". Where is this "list" and how are you replacing something?

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: java.lang.NoClassDefFoundError [message #1857308 is a reply to message #1857287] Mon, 30 January 2023 06:42 Go to previous messageGo to next message
Arsen Davtyan is currently offline Arsen DavtyanFriend
Messages: 17
Registered: May 2022
Junior Member
Ed Merks wrote on Sat, 28 January 2023 08:01
It's not entirely clear what you mean by "then replace it in my plugins list". Where is this "list" and how are you replacing something?

Hi, Ed thank you for your response.
In my installed IDE I have the folder IDE/eclipse/plugins/
in which I have a lot of plugins / jars
org.eclipse.tools.****<version>.jar
......<>
org.eclipse.ui.****<version>.jar
........<>
totally more 300+ jar files. When I export my jar file which was taken from one of them as a source and slightly changed in my case only one line. After that, I replaced it in the folder with jars. And when I reach that line during runtime it throws the exception NoClassDefFoundError.
Re: java.lang.NoClassDefFoundError [message #1857311 is a reply to message #1857308] Mon, 30 January 2023 07:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32866
Registered: July 2009
Senior Member
Maybe if you try launching with -clean that will help.

https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html

In any case, that's not really a good.proper way to "install" something. Running with -debug might provide more details. You're sure that the given version or higher of org.eclipse.debug.core is in the installation.

I'm not sure that dropins will work either:

https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: java.lang.NoClassDefFoundError [message #1857323 is a reply to message #1857311] Mon, 30 January 2023 12:30 Go to previous message
Arsen Davtyan is currently offline Arsen DavtyanFriend
Messages: 17
Registered: May 2022
Junior Member
Thank you Ed. It WORKS!!! That was very important for me.
The -clean helped me. I should run my project -clean. In this case, the plugins are recompiled and everything works.

[Updated on: Mon, 30 January 2023 12:31]

Report message to a moderator

Previous Topic:Fortran -- error message in Build
Next Topic:Eclipse with support for BOTH Java and PHP
Goto Forum:
  


Current Time: Thu Jul 13 03:43:45 GMT 2023

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

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

Back to the top