Export - runnable jar file - Package required libraries into generated JAR
Answered
Hi, Eclipse has the option to "Package required libraries into generated JAR" when export runnable jar file ,how can this be done in Intellij?
I only find the option "extract to the target JAR" and "copy to the output directory and link via maniftest", I need to generate a standalone JAR that integrates the dependencies, which cannot be extracted because I will change them frequently
Please sign in to leave a comment.
Java itself doesn't support such self-containing JARs, and Eclipse uses custom attributes in the manifest file and a custom classloader to make it work. So the application will behave differently when running from the IDE and running from such JAR file, and it may cause problems in some cases.
There is a request to support it similar to Eclipse, please feel free to vote for this request in our tracker: https://youtrack.jetbrains.com/issue/IDEA-150485
thanks