I am creating a plugin which requires jdt.ui.JavaUI class. I included the jdt.ui plugin into the dependencies. 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 this is my build.properties:
source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
META-INF/,\
.,\
icons/,\
templates/
At compile time I do not get any compilation errors. If I debug the plugin using Eclipse (Debug as -> Eclipse Application) it works fine.
However when I export it, then install it copying it into the Eclipse plugins folder, the plugin does not work. As soon as 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?