If have login problems remove cookies and clear browser cache.



Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Your mobile maximum Java application size
02-06-2021, 01:07 AM
Post: #8
RE: Your mobile maximum Java application size
(02-05-2021 03:56 PM)nkzn64 Wrote:  If you are not doing so already, obfuscating the Java classes can yield high size reductions on them. It can strip out lots of debugging information J2ME phones don't make any use of. ProGuard is the most popular tool for doing so (https://github.com/Guardsquare/proguard)
These are the options that usually work for me:
Code:
proguard -libraryjars S40-5th-lib-unified.jar -target 1.4 -keep 'class * extends javax.microedition.midlet.MIDlet' -optimizationpasses 5 -overloadaggressively -repackageclasses '' -allowaccessmodification -microedition -injars input.jar -outjar output.jar
(I've attached the S40-5th-lib-unified.jar. It is from the Nokia SDKs. It contains the library classes for the J2ME APIs)

If you use PNG assets, there's several tools that can try harder at compressing them to further reduce their size, without any quality loss. They can usually save a few kilobytes off big PNGs
https://github.com/fhanau/Efficient-Compression-Tool
https://css-ig.net/pingo (Windows only)
https://trimage.org/ (Linux only)

I'm already using Proguard, without it it goes up to 285Kb lol
Proguard really helps alot
To compress Image files, i'm using Gimp, limitting it's color palletes and exporting them as 8-Bit AARRGGB, but i'll try these tool too, thank you

(02-05-2021 03:56 PM)nkzn64 Wrote:  If you are using MIDI files, old Nokia PC Suite versions had a tool to adapt MIDI files to the phone's capabilities (IE, reduce channels, length, etc) It also haves an "Optimize file size" option that might be of your interest
Nokia PC Suite is very old, you will need an old Windows machine (or virtual one) to run it. Here's the installation disc https://archive.org/details/nokia8800driversdisc
I've tried in Windows XP, and you can install it sucessfully without a phone. When asked for the connection type, just click cancel and it will take you to the main PC Suite screen. Then use the "Make Ringtone" option

Finally, you can try running AdvZip on the final JAR file (https://www.advancemame.it/comp-readme.html). It should shave a few kilobytes more

Hope this is helpful for your project!

I did not knew MIDI could be compressed, thanks <3
¿Is it 100% compatible? I'm a bit afraid because it's on Nokia PC Suite and i think it'll make only Nokia compatible... ¿Will this compression work on all models?

[size=xx-small]Signature[/size]
[URL=https://www.exophase.com/user/JoseskVolpe/][IMG]https://card.exophase.com/2/0/45687.png?1612237163[/IMG][/URL]

[align=justify][size=x-small][b]OwO ¿¿¿What is this??? *wags tail*
Take my beret plz 7w7 ~[/b][/size][/align]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Your mobile maximum Java application size - JoseskVolpe - 02-06-2021 01:07 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)