将 .jar 文件加载到手机上时出现错误

发布于 2024-08-30 01:23:42 字数 218 浏览 3 评论 0原文

我正在尝试将 .jar 文件下载到我的移动设备上。我已经编写了一个 j2me 应用程序,我想将其安装到我的手机上。我在 eclipse galileo 中开发了它,并将我的项目文件夹导出到一个 jar 中。

当我尝试将 jar 文件从互联网下载到手机上时,出现“描述不正确”错误。

有谁知道如何将 j2me 应用程序安装到移动设备上或者为什么我可能会收到此错误?

提前致谢。

I am trying to get a .jar file onto my mobile device. I have written a j2me application and I want to get it onto my phone. I have developed it in eclipse galileo and I export my project folder to a jar.

When I try to download the jar file from the internet onto my phone I get an "incorrect description" error.

Does anyone know how to get a j2me application onto a mobile device or why I may be getting this error?

Thanks in advance.

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

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

发布评论

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

评论(2

夜无邪 2024-09-06 01:23:42

您的工具链应该生成 .JAR 文件和 .JAD 文件。

根据 J2ME 规范,手机并不总是必须允许安装 .JAR 文件。

您应该部署 .JAD 文件,并确保 .JAR 位于可访问的位置(手机存储或移动网络)。

.JAD 文件应该包含 .JAR 文件的位置,以便手机 MIDlet 安装程序可以检索它。

编辑:

手机拒绝安装 .JAD 文件的原因有很多。

它可能是完全错误的并且不符合 MIDP 规范。
它可能由手机不喜欢的证书签名
它可能使用错误版本的 J2ME 配置或概要文件。
它可能包含手机无法识别的权限
...

回答您的问题的最佳方法是添加 .JAD 文件的内容、打包在 .JAR 文件内的清单文件的内容以及您尝试安装的手机的品牌和型号名称。应用上。

Your toolchain is supposed to generate both a .JAR file and a .JAD file.

As per the J2ME specifications, phones don't always have to allow the installation of the .JAR file.

You should deploy the .JAD file instead and make sure the .JAR is in an accessible location (handset storage or mobile network).

The .JAD file is supposed to contain the location of the .JAR file so the handset MIDlet installer can retrieve it.

EDIT:

There are a number of reasons why a phone would refuse to install a .JAD file.

It could be just plain wrong and not compliant with the MIDP specifications.
It could be signed by a certificate the phone doesn't like
It could use the wrong version of the J2ME configuration or profile.
It could contain permissions that the phone doesn't recognize
...

The best way to have your question answered would be to add the content of the .JAD file, the content of the manifest file packaged inside the .JAR file and the brand and model name of the handset you are trying to install your application on.

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