I wrote a desktop application. It is about 35kb. Engine of the application is a soap service, and I used Apache Axis.
The problem is that with used library application becomes about 4 MB. I want to mention that the axis.jar is 1.5 MB.
Can anybody give me some advise to make sizes smaller? Can I replace axis.jar with another one? I am sure that in axis.jar I don’t need all the classes.
You can use ProGuard to remove unnecessary classes in your jar. You’ll need to configure it to be aware of entry points for your application. From there it usually does a good job of determining what you need, especially for a small program. See the examples for how to configure it for a variety of situations.