I have a java plugin written for a software called icy. Since the entry point of program is when the plugin is activated from the software, I am having trouble about how to mention that in manifest.mf file. When I give the main class (which has event handler and not the main method) it says resources not found.
How can I solve this?
2 Answers 2
Why do you want to "mention" anything in the manifest file?
What does the documentation of the software you're writing the plugin for say about what it expects in the manifest?
Most likely, you can just leave out the Main-Class
header or even omit the manifest entirely.
-
When I select the class containing the event handler in launch configuration option it says it cant find the resource. I reckon it means it didn't find main method in it.Sudip Bhandari– Sudip Bhandari2016年07月18日 07:16:42 +00:00Commented Jul 18, 2016 at 7:16
-
@SudipBhandari: I assume "launch configuration option" means you're trying to launch it manually in eclipse. Why do that when it's an event handler for a plugin? For testing? In that case, simply add a main method.Michael Borgwardt– Michael Borgwardt2016年07月18日 07:31:14 +00:00Commented Jul 18, 2016 at 7:31
I think you should export your project as a regular jar file and not as a runnable jar. That way your plugin client just need to know what method to call just like when you use an API. The only difference is that that method will open a Window etc.