有没有办法在手机上查找java内存状态?
我的 J2me 应用程序大小为 880KB。我必须在多部手机上运行这个 jar 文件。有些手机在单击 jar 文件时显示了下面给出的例外情况。
这些是
- Java 错误。内容大小太大。
项目不受支持。
据我所知,java内存和手机内存是不同的东西。因此,我们必须有足够的java内存空间来运行我的应用程序。
- 所以,请告诉我这个问题的原因,并让我知道是否 有什么方法可以找到JAVA的可用内存空间。
- 如何判断手机是否支持java?
- 我想知道880 Kb的jar文件是否是正常大小?
I have my J2me application that have 880KB
size. I have to run this jar file in multiple phones. Some phones have shown the exceptions given below while clicking jar file.
These are
Java Error. Content Size too Large.
item not supported.
As far as I know, java memory and phone memory are different things. So, we must have sufficient java memory space to run my application.
- So, please tell me the reason to this problem and also let me know if
there is any way to find Available memory space for JAVA. - How to find if the phone is java enabled or not?
- I would like to know whether 880 Kb jar file is normal size or not?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
处理此清单:
Work on this checklist:
通常,S40 手机允许手机上的 JAR 文件大小有限。该手机仅允许 166KB 到 2 MB。此外,移动设备的堆内存有限(最大 4 MB,基于 S40 版本)。如果 JAR 文件大小超过,您将收到类似
Java Error 的错误警告。内容大小太大。
如果您想查找支持 java 的手机列表,您必须手动查找(对于诺基亚 请参阅此规范)。
还有一种查找移动信息的替代方法。即使用 WURFL。 当用户从 WAP 浏览器下载 JAR 文件时,您可以在服务器端获取移动信息。
Normally S40 mobiles are allowing limited size of JAR file on the mobiles. That mobiles allowing only 166KB to 2 MB. Also that mobiles having limited heap memory (Max 4 MB, Based on S40 version). If JAR file size exceed, you will get the error warning like
Java Error. Content Size too Large.
If you want to find java enabled mobiles list, you have to find manually(For nokia see this specification).
There is one alternate way to find mobile information's. That is use WURFL. You can get the mobile information's on server side when user download the JAR file from WAP browser.