开发者

.Java error(content size increases)

开发者 https://www.devze.com 2023-03-20 11:49 出处:网络
I am using LWUIT in j2me.There is only one .java file containing midlet and 10 images consisting total size of 49kb.

I am using LWUIT in j2me. There is only one .java file containing midlet and 10 images consisting total size of 49kb.

I had added LWUIT.jar in resource file. Now my application executes and rusn properly in simulater .But w开发者_运维技巧hen I install it in device it is showing me this error:

.java error content size to large

As the .jar file is of size 556KB


Use Obfuscating to high level and reduce the Jar file size. Also see this article, Jar size Optimization.

If you are using NetBeans means follow these steps,

  1. Right click the project and go to properties.
  2. Select Obfuscating in Build and set into High level.
  3. Clean and Build the project and see your Jar file size.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号