Give me all your tricks for minimizing jar file size


Posted on 16th Feb 2014 07:03 pm by admin


Hi, I'm coming close to releasing my J2ME game... I am kicking up against the 64k size barrier which I have imposed as a maximum size for my game. I would like to add more levels to the game but the only way I can do that Is to make the jar smaller... Oh yeah I have made the decision to NOT have it download any data (maps, etc...) over the internet as well.

I have heard about using preprocessors to get rid of statics and that would make it smaller... Any thoughts, suggestions? Sun one studio 5 ME doesn't seem to support preprocessing... is there any free or cheap IDE that does?

Do any obfuscators do a significantly better job at reducing size than the retroguard one does?

I've tried to eliminate any common code amongst classes and put it in static functions that get called from many places...

I'm wondering about using shorts internally instead of ints... at first I was going with shorts thinking it would be a size savings, but now I'm thinking that all the conversions to ints and back are probably a size loss... anyone know the empirical answer?

If you have any tips to reduce jar size, please respond :)

No comments posted yet

Your Answer:

Login to answer
87 Like 40 Dislike
Previous forums Next forums
Other forums

SQl num_rows problem
when i try to count rows from an SQL select i get an warning

Code: [Select]$countviews = mysq

login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php

Multiple websites question.
Hi, does php have any functionality that enables a programmer to extract information from a website

PHP / MySQL Associative Multidimensional Array:
Hello.

I have data in a MySQL Table that adheres to the below: (note, no index, could add if

Sharing PHP Sessions Across Domains
I am in the process of writing a script to share a php session across various domains I have.
The

A Few Questions
Hi, I want to ask a few questions that I can't seem to find..

1) I'm creating a "shortcu

Sending CC Info by email
I am a little bit less knowledgable in the security area as most developers and I know I have a lot

ctype() validation - allowing illegal characters
Hello,
I use ctype() to filter and validate a user form. However, I am trying to allow certain c

Problems with array
This code is the last lines in an upload script that uploads 4 images at the same time and writes th

Shopping Cart
Can anyone direct me to a Simple, Basic structure of a shopping cart.
New to classes. I want to s

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash