Error while activating bundle [message #117705] |
Mon, 14 November 2005 15:33 |
Eclipse User |
|
|
|
Originally posted by: s.c.cook.reading.ac.uk
I need some help with configuring the installation of my first attempt at
writing a plugin. The plugin works fine if I run it by launching a new
instance of Eclipse from its PDE Overview page.
However, if I install the plugin in my plugins directory, I get an error
when I try to use the plugin. The menu item defined in plugin.xml gets
created (and the plugin shows up in the Plugin Registry view) but clicking
the menu item produces this error:
!SESSION 2005-11-14 19:58:06.769
-----------------------------------------------
eclipse.buildId=I20050627-1435
java.version=1.4.2_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_GB
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.osgi 2005-11-14 19:59:11.283
!MESSAGE An error occurred while automatically activating bundle
com.elmpark.printing (107).
!STACK 0
org.osgi.framework.BundleException: The activator
com.elmpark.printing.PrintingPlugin for bundle com.elmpark.printing is
invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:151)
...
Here's the contents of MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Printing Plug-in
Bundle-SymbolicName: com.elmpark.printing; singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: elmpark-printing.jar
Bundle-Activator: com.elmpark.printing.PrintingPlugin
Bundle-Vendor: Stephen@elmpark.com
Bundle-Localization: plugin
Export-Package: com.elmpark.printing;version="1.0.0"
Require-Bundle: org.eclipse.ui,
org.eclipse.jdt.core,
org.eclipse.core.resources,
org.eclipse.core.runtime
Eclipse-AutoStart: true
The jar file is present in the plugin's directory and it contains the
class files. I can't spot any obvious discrepancies but something must be
wrong somewhere.
Any helpful suggestions would be very welcome.
Many thanks,
Stephen Cook
|
|
|
Powered by
FUDForum. Page generated in 0.25829 seconds