Activator not called if plugin created by JAR [message #1273072] |
Wed, 19 March 2014 12:57 |
|
I created eclipse plugin from jar Like EclipseJarToPlugin
Then in MANIFEST.MF I'm adding `Activator` for this plugin.
But the problem is this Activator never called. Even while creating plug-in there is no option for Activator.
Is there is any way so that we can know when first time any Exported class of this plugin(of jar) is called.?
|
|
|
|
Re: Activator not called if plugin created by JAR [message #1281807 is a reply to message #1277672] |
Tue, 01 April 2014 11:37 |
|
The problem was:
The activator org.example.FooActivator for bundle org.example.foo is invalid
And I found that is because of:
There has been a ClassNotFoundException trying to load the class in the first place, before it's even got to the start() method.
So for solve this problem:
You have to add "." in to your class path see following image.
Add scr as source in your build and . in your bin.includes. See the image below:
|
|
|
Powered by
FUDForum. Page generated in 0.02147 seconds