Java – how can I repackage a jar file that contains all the dependencies?

I'm developing an application that should run independently However, this project involves a project with a large number of dependencies Jar file, if I just put this The jar file is distributed with the application and will not work

I wonder if there is any way to unzip the file, add dependencies, and repackage it? I want some automation, because the manual process may take hours, and there may be other referenced jar files

PS: I am using eclipse, but since I will deploy this project using web start, it may not be a good idea to export the project using the built-in export tool, because my attempts are based on classnotfoundexception, so I suspect I might have to pack the project into partial jars end

thank you!

Solution

Look at jar Sounds like it'll do what you need

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>