Reputation: 361
I want to export jar file with existing jar file in the project by eclipse. I exported jar file but it did not contain existing jar file in the project. How to export jar file with existing jar in the project?
I exported jar file by the following steps. Where is the "Package required libraries into generated JAR" checkbox? I can't see it. Please show me how to do.
Upvotes: 0
Views: 1525
Reputation: 1491
It works for me on Eclipse 3.7.2. Make sure you select the jar file in the select resources to export tree control (on the JAR export window).
If you want to export as Runnable JAR make sure to tick the "Package required libraries into generated JAR" checkbox." This will add the required libraries as JARs in your exported JAR.
Upvotes: 0
Reputation: 859
The easiest way I found was using FatJar Plug-in here: http://fjep.sourceforge.net/
Upvotes: 1