aspose file tools*
The moose likes Other Open Source Projects and the fly likes JFree library size reduce Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JFree library size reduce" Watch "JFree library size reduce" New topic
Author

JFree library size reduce

chirayu joshi
Greenhorn

Joined: Aug 01, 2012
Posts: 10
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.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18887
    
    8

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.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42601
    
  65
ProGuard is great for automating this.


Ping & DNS - my free Android networking tools app
chirayu joshi
Greenhorn

Joined: Aug 01, 2012
Posts: 10
Ulf Dittmer wrote:ProGuard is great for automating this.


I am not gettig...how to use it.
can you tell how to use or just tell the progaurd command to compress jfreechart-1.0.13.jar
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10263
    
168

chirayu joshi wrote:
Ulf Dittmer wrote:ProGuard is great for automating this.


I am not gettig...how to use it.

It's explained in their documentation http://proguard.sourceforge.net/#manual/index.html


[My Blog] [JavaRanch Journal]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42601
    
  65
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
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: 42601
    
  65
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
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.



Thanks.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFree library size reduce