1

I'm executing my j2me project and I'm getting this error:

TRACE: <at java.lang.OutOfMemoryError>, Exception caught in Display class
java.lang.OutOfMemoryError
   (stack trace incomplete)

My .jar size is 612KB and I had search and found this: Java heap space in netbeans.. but I've increased the heap size already!

But as shown in this case, I am not able to find VMoption in properties-Run.

Where can I get the screenshow or the exact file where I have to increase the heap size of Netbeans?

1 Answer 1

1

You can use obfuscator to obfuscate your code . and 612 kb is considered as a large file for java-me.

You can increase memory and made it working but it will fail in real time env. so I would suggest you to work in dev with real time conf.

right click your project > properties > obfuscating > obfuscation level > high >build your app

Sign up to request clarification or add additional context in comments.

2 Comments

Hello,i am not getting the "OBFUSCATOR" can u please explain it in detail
i had done that now the size of jar file decrease to 501KB from 612KB.But i an still facing the problem at same place.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.