Reputation: 5101
I am trying to export an individual runnable class from a larger project. This specific class does not depend on the project libraries.
In Export->Java->Runnable JAR file -> Library handling
there are options to extract, package or copy the required libraries, but not to simply omit them.
I really don't need them, moreover the library export fails in my situation.
How can I export it without libraries?
Upvotes: 0
Views: 1390
Reputation: 18869
The far jar plugin supports this.
When you export a java project containing jars using the File -> Export -> Other -> One Jar Exporter
, in the Select files for Fat Jar
page of the wizard you can choose not to include the libraries like so :
The jar thus exported works fine.
Upvotes: 2