You Are Here:

Community: Developer Discussion Boards

#1 Old Jar size exceeding the limit - 2005-08-30, 13:55

Join Date: Aug 2005
Posts: 2
j2me_halosys
Offline
Registered User
How we can reduce the jar size apart from obfuscation? What are the possible targets to reduce the size of the application? I have used pngout and still my application is exceeding the limit.

Thanks in advance
Reply With Quote

#2 Old Re: Jar size exceeding the limit - 2005-08-30, 15:41

Join Date: Mar 2003
Posts: 19
RogerJFX
Offline
Registered User
I use ImageOptimizer from xat.com. You can download a test version and see.
If you have many PNGs using the same color palette, make one file of it and work with setClip (x, y, w, h) or clipRect(...) before painting.

g.setClip(xCoordDisplay, yCoordDisplay, width, height); // definitely the area to be affected
g.paintImage(xCoordDisplay-xCoordPNG, yCoordDisplay-yCoordPNG, Graphics.TOP|Graphics.LEFT); // only paint the required area of your PNG

Storing the image data (xCoordPNG..) in a final byte or int Array is usefull.

Don't use many packages/folders.

Good luck!
Reply With Quote

#3 Old Re: Jar size exceeding the limit - 2005-08-30, 15:44

Join Date: Mar 2003
Posts: 19
RogerJFX
Offline
Registered User
ouh sorry,

g.drawImage(...)
Reply With Quote

#4 Old Re: Jar size exceeding the limit - 2005-08-30, 15:45

Join Date: Mar 2003
Posts: 19
RogerJFX
Offline
Registered User
and the Image itself might be the first argument.

Where's my mind?
Reply With Quote

#5 Old Re: Jar size exceeding the limit - 2005-09-03, 07:16

Join Date: Aug 2005
Posts: 2
j2me_halosys
Offline
Registered User
Hi Roger,
Thanks for the information.

It would be really helpful, if you could help us with the code to convert images into a single binary resource file and vice-versa.

Thanks for your time.
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
6020 jar size limit mikbjo Mobile Java General 4 2005-05-19 16:38
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
limit size of jar file johnmobile Mobile Java General 18 2003-09-26 20:13

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