I am creating a plugin that requires the jdt.ui.JavaUI class. I have included the jdt.ui plugin depending. This is my Manifest.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: PanelGenerator Plug-in
Bundle-SymbolicName: PanelGeneratorPlugin; singleton:=true
Bundle-Version: 0.1.0
Bundle-Activator: panelgenerator.plugin.Activator
Require-Bundle: org.eclipse.jdt.core,
org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.ui.ide,
org.eclipse.jdt.ui
Eclipse-LazyStart: true
and these are my build.properties properties:
source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
META-INF/,\
.,\
icons/,\
templates/
During compilation, I get no compilation errors. If I debug a plugin using Eclipse (Debug as -> Eclipse Application), it works fine.
However, when I export it, install it by copying it to the Eclipse plugins folder, the plugin does not work. Once the JavaUI class is used, nothing happens. The error log reports this:
java.lang.NoClassDefFoundError: org/eclipse/jdt/ui/JavaUI
Any ideas on why this is happening?
source
share