1

Can anyone tell me how the size of jcommon-1.0.16.jar and jfreechart-1.0.13.jar(mainly jfreechart-1.0.13.jar ) executables can be decreased.i need to reduce size for my embedded product which works on linux environment.

Memory is the biggest problem in embedded...can anyone help me out.

2
  • 1
    Can you get the source and build just the classes you need? If you use code coverage this can help determine that. Note: the memory used by the library is mostly images you create, the size of the code is relatively small. Aug 13, 2012 at 8:36
  • Cross-posted here.
    – trashgod
    Aug 13, 2012 at 18:46

3 Answers 3

1

There is a question here that may point you in the right direction. ProGuard was the most popular solution but I'm afraid I'm no direct experience.

2
  • I have java 1.5 used by my board but ProGaurd seems to be used for java6 and doubt reliability and integrity of the code after its usage.
    – CJ_world
    Aug 13, 2012 at 8:47
  • Jaba 5 is addressed in the FAQ. To check the reliability you could use the Unit Tests included in the JFreeChart distribution. I'm not sure how you would verify the integrity.
    – GrahamA
    Aug 13, 2012 at 9:27
1

Another option is the Maven Shade Plugin , with its minimizejar option

        <configuration>
          <minimizeJar>true</minimizeJar>
        </configuration>

Remember that only those classes will be included in the jar that have direct dependencies in the code, although Java code can load classes in many other tricky ways.

0

I used JCC kit for my target platform and it's less than 100kb library. You need to understand the library and after that you can play without worrying about size. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.