How to reduce J2ME Jar Size

I am programming in J2ME and was wondering how I can keep my JAR file size to a minimum. I particularly want to know if the following has any effect:

- Variable and Class names
- Comments

Anything else is appreciated and references are essential
meinnitAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mayank SAssociate Director - Product EngineeringCommented:
Well, class-files are anyway very optimized byte-code (compare a Java class-file size to the size of a .NET DLL having the same number/ size of classes). Java-doc comments might make a difference, but not much.
0
meinnitAuthor Commented:
Thanks but that isnt sufficient to fully answer the question
0
meinnitAuthor Commented:
Increased from 125 to 175 points
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Mayank SAssociate Director - Product EngineeringCommented:
Well the answer is that those two things (variables/ comments) are not likely to have 'much' impact on it. However, make sure that you don't keep any files in the JAR which are not really required. Try obfuscating - it might reduce the JAR size a little because it will change all variable/ method names.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
meinnitAuthor Commented:
Thanks. I need references to back that up. Increased to 450 points
0
Mayank SAssociate Director - Product EngineeringCommented:
0
meinnitAuthor Commented:
Also need a reference for comments having an affect on size
0
Mayank SAssociate Director - Product EngineeringCommented:
I'm not sure if they do. In IDEs like Eclipse, if you hover the mouse over a method, it shows the Java doc comments for it. Not sure where it picks up from (whether the JAR has it or whether it is simply because the HTML documentation is also available somewhere).
0
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.