Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Activator not called if plugin created by JAR(Activator not called if plugin created by JAR)
Activator not called if plugin created by JAR [message #1273072] Wed, 19 March 2014 12:57 Go to next message
sumit singh is currently offline sumit singh
Messages: 131
Registered: October 2012
Location: Bangalore
Senior Member

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 #1277672 is a reply to message #1273072] Wed, 26 March 2014 09:51 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

Is your plugin in your running configuration?
Re: Activator not called if plugin created by JAR [message #1281807 is a reply to message #1277672] Tue, 01 April 2014 11:37 Go to previous message
sumit singh is currently offline sumit singh
Messages: 131
Registered: October 2012
Location: Bangalore
Senior Member

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.

http://i.stack.imgur.com/UeXU0.png

Add scr as source in your build and . in your bin.includes. See the image below:

http://i.stack.imgur.com/RDKHu.png
Previous Topic:StackRenderer - Question/Issue
Next Topic:PartSashContainer as child of PartStack
Goto Forum:
  


Current Time: Tue Sep 23 18:36:30 GMT 2014

Powered by FUDForum. Page generated in 0.02058 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software