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?

halfer
  • 19,824
  • 17
  • 99
  • 186
shweta
  • 1,120
  • 1
  • 11
  • 25

1 Answers1

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

jmj
  • 237,923
  • 42
  • 401
  • 438
  • Hello,i am not getting the "OBFUSCATOR" can u please explain it in detail – shweta Apr 29 '11 at 09:01
  • 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. – shweta Apr 29 '11 at 09:08