简体   繁体   English

Netbeans 得到 java.lang.OutOfMemoryError

[英]Netbeans getting java.lang.OutOfMemoryError

I'm executing my j2me project and I'm getting this error:我正在执行我的 j2me 项目,我收到了这个错误:

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! My.jar 大小为 612KB,我搜索并发现: Java 堆空间在 netbeans.. 但我已经增加了堆大小!

But as shown in this case, I am not able to find VMoption in properties-Run.但如本例所示,我无法在 properties-Run 中找到 VMoption。

Where can I get the screenshow or the exact file where I have to increase the heap size of Netbeans?我在哪里可以获得屏幕显示或我必须增加 Netbeans 的堆大小的确切文件?

You can use obfuscator to obfuscate your code .您可以使用混淆器来混淆您的代码 and 612 kb is considered as a large file for java-me.并且 612 kb 被认为是 java-me 的大文件。

You can increase memory and made it working but it will fail in real time env.您可以增加 memory 并使其工作,但它会在实时环境中失败。 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右键单击您的项目>属性>混淆>混淆级别>高>构建您的应用程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM