.Java错误(内容大小增加)

发布于 2024-11-23 23:17:51 字数 241 浏览 2 评论 0原文

我在 j2me 中使用 LWUIT。只有一个 .java 文件包含 midlet 和 10 个图像,总大小为 49kb。

我已在资源文件中添加了 LWUIT.jar 。 现在我的应用程序在模拟器中正确执行并运行。但是当我将其安装在设备中时,它向我显示以下错误:

.java 错误内容大小太大

由于 .jar 文件大小为 556KB

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 when 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

潜移默化 2024-11-30 23:17:51

使用高级混淆并减少 Jar 文件大小。另请参阅这篇文章Jar 大小优化。

如果您使用的是 NetBeans,则需要执行以下步骤,

  1. 右键单击该项目并转到属性。
  2. 在Build中选择Obfuscating并设置为High level。
  3. 清理并构建项目并查看 Jar 文件大小。

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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文