Please explain: MANIFEST.MF, OSGi, plugin.xml [message #251155] |
Wed, 09 June 2004 15:01 |
Eclipse User |
|
|
|
Originally posted by: karypid.inf.uth.nospam.gr
Hi all,
I'm a newbie who's first plugin is ready and I would like to add it to my
standard Eclipse installation. The plugin works perfectly when launching
Eclipse from within Eclipse (PDE). When I copy my .jar and plugin.xml files
into the normal Eclipse plugins folder, activating my plugin give this in
the error log:
Plug-in my.plugin was unable to load class my.plugin.ViewerClass.
With a long stack trace ending with:
java.lang.ClassNotFoundException: my.plugin.ViewerClass
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:404)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
Any ideas what's wrong? I've checked the .jar file and it _does_ contain the
file "my/plugin/ViewerClass.class" (the plugin adds a view to Eclipse).
After looking around I'm suspecting it has something to do with the
MANIFEST.MF. I checked the "Generate" option in Eclipse. It is
embarrassingly simple with just the following line:
Manifest-Version: 1.0
What's supposed to go in this file? Some Java docs I looked at gave
instructions about defining an application entry point class with a main
method and said that other stuff that may go in there is application
specific...
--
In theory, there is no difference between theory and practice. In practice,
there is. -- Yogi Berra.
Alexandros Karypidis
UTH, Computer & Communications Eng. dept.
|
|
|
Powered by
FUDForum. Page generated in 0.02501 seconds