You Are Here:

Community: Developer Discussion Boards

#1 Old Reducing jar size - 2006-02-05, 21:57

Join Date: Feb 2006
Posts: 3
kitzkar
Offline
Registered User
I'm curious as to what methods for reducing jar size exist.

What I have tried so far:
- used pngout
- moved static classes into one single class

I saw on an older thread on this forum that someone suggested Image Optimizer from xat.com. I'll try that.

I still need some more methods.
Thanks.
Reply With Quote

#2 Old Re: Reducing jar size - 2006-02-06, 10:05

Join Date: Jan 2005
Posts: 56
Location: France, Paris
canard_42
Offline
Regular Contributor
- obfuscate your code with proguard, with the -overloadaggressively option
- you can combine your png resources into one big resource (the drawback of this method is the heap size)
- you can combine any resource into one resource, but you must be able to read the right resource at the right position
- if your application uses http, you may download resources instead...
- if you initialized static (or not) arrays in your classes, you can use resources to initialize arrays instead. You may gain some bytes...
- move your variable declarations, seems like you can gain some bytes, if the ones most used are placed first (but I've never tried it...)
- avoid interfaces or extension...
- avoid object conception, put everything in one class ;)
- you can try to unjar your jar application, and use "7-zip" (7-zip.org) to re-compress it, and change the midlet size in the jad.
Reply With Quote

#3 Old Re: Reducing jar size - 2006-02-06, 12:37

Join Date: Aug 2005
Posts: 29
simonhayles
Offline
Registered User
See;

http://www.j2meforums.com/yabbse/ind...;threadid=1153
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
OTA max jar size lewsterin Mobile Java General 4 2006-01-27 10:47
The correct meaning of MAX JAR size bigrio Mobile Java General 1 2004-11-16 11:30
The correct meaning of MAX JAR size bigrio Mobile Java General 0 2004-11-13 12:03
A Different Jar Size Limit Problem cicdem Mobile Java General 0 2004-06-17 16:01
reducing jar file size doomer999 Mobile Java General 1 2003-05-14 20:25

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia