Search code examples
javaeclipsegwtbirteclipse-classpath

Missing Class in JAR file java.lang.NoClassDefFoundError: or g/eclipse/core/runtime/spi/IRegistryProvider


I'm trying to integrate my gwt webapp with Birt.

Currently I am using an RPC connection to make a request from the client side to the server side which will run the SimpleCreate.java Eclipse tutorial.

However, when I run the app I get a:

java.lang.NoClassDefFoundError: or g/eclipse/core/runtime/spi/IRegistryProvider 

I encountered a similar problem before when it was looking for CoreException and from this post it was a classpath error and was solved by adding a different jar file.

Unfortunately, I can't find an answer on the web even though there were questions similar to mine. Is this a classpath error and I'm missing a jar file or something else? Currently, I am using birt runtime 4.6.0 and gwt 2.8.1.


Solution

  • IRegistryProvider is in the org.eclipse.equinox.registry plugin jar

    You can find out the plugin containing a class by using 'Navigate > Open Type...' to open the class and then in the editor context menu using 'Show In > Package Explorer' to see the package.

    To get 'Open Type' to include the Eclipse code you need to check the 'Include all plug-ins from target in Java search' option on the 'Plug-in Development' Preferences page.