Create jar of a java application where entry point is an external program

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 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?

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.


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.

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *