How can i reduce the size of jcommon-1.0.16.jar and jfreechart-1.0.13.jar(mainly jfreechart-1.0.13.jar) so that i can use this library in my embedded environment.Size is creating probs for me. Please tell how can i reduce.
Fork the project and remove some classes which you won't be using. Also remove the other classes which are only used by the other classes you just removed. Generate a jar file from what is left. Repeat until your size problem goes away.
Yes, you will need to spend a bit of time learning how to set up a command file for ProGuard. It's well worth the effort.
chirayu joshi
Greenhorn
Joined: Aug 01, 2012
Posts: 10
posted
0
Ulf Dittmer wrote:Yes, you will need to spend a bit of time learning how to set up a command file for ProGuard. It's well worth the effort.
Whether Progaurd will reduce the size of jfre library from 1.35mb to less then 200kb......?I am asking because i want to be sure and not waste time in useless work which atlast dont give the required output
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
That depends on how many features of the library your code uses. But it better not be a requirement that the library will be reduced that much, because it's entirely unpredictable (and unlikely, IMO) whether or not that's possible. But it shouldn't be more than an hour's time to find out either way.
chirayu joshi
Greenhorn
Joined: Aug 01, 2012
Posts: 10
posted
0
Ulf Dittmer wrote:That depends on how many features of the library your code uses. But it better not be a requirement that the library will be reduced that much, because it's entirely unpredictable (and unlikely, IMO) whether or not that's possible. But it shouldn't be more than an hour's time to find out either way.