Reduce jar file size
Learn more. Reducing jar file size? Asked 10 years, 2 months ago. Active 8 years, 8 months ago. Viewed 18k times. Improve this question. Add a comment. Active Oldest Votes. Yes, there is one - Proguard. Improve this answer. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Related Hot Network Questions. Question feed.
Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings. Remember that you can have external references to other jars, you don't need to include them in your own jar. Martin Vashko. I generally agree with Roger. If you're building your own application, you already have full control over what will get included. Nevertheless: biraj joshi wrote: -dontwarn -ignorewarnings These are probably not the options to use if you're trying to solve a problem.
Actually I have built an runnable jar using selenium. What my jar does is it just opens a browser InternetExplorer and does some basic tasks like form submitting. The problem is with the size of the jar. My application jar size is 6. Improve this question.
Well, to add my module to the project. Add a comment. Active Oldest Votes. You can use only that feature and already get quite some saving Or you could combine it with other space-saving obfuscation techniques such as class and method renaming to save even more space at the cost of harder debugging your stack traces will become harder to parse.
Improve this answer. Joachim Sauer Joachim Sauer k 55 55 gold badges silver badges bronze badges. These are essentially the libraries that you would need for compiling the code. ProGuard uses them to reconstruct the class dependencies that are necessary for proper processing. The library jars themselves always remain unchanged. You should still put them in the class path of your final application. What am I missing? Thanks for accepting this answer, but if you used autojar, you should probably have accepted that answer instead ;- — Joachim Sauer.
From the installation instructions of fastutil: Note that the jar file is huge, due to the large number of classes: if you plan to ship your own jar with some fastutil classes included, you should look at AutoJar also available at JPackage to extract automatically the necessary classes.
0コメント