简体   繁体   English

Jar文件无法正常工作错误:无效的jar文件

[英]Jar file is not Working Error: Invalid jar file

I am very new to J2ME. 我是J2ME的新手。 I am creating an J2ME application using Eclipse. 我正在使用Eclipse创建J2ME应用程序。 I exported the .jar file from the Project. 我从项目中导出了.jar文件。 But when i am trying to open that .jar file in mobile phones . 但是,当我尝试在手机中打开该.jar文件时。 It's giving "Invalid jar file " error. 出现“无效的jar文件”错误。 This is working on Emulator Properly. 这是正确的模拟器上的工作。

What can be the Problem ? 可能是什么问题? Please help me. 请帮我。

It seems that you have not specified compulsory attributes like midlet-class-name you can specify this by open application descriptor. 似乎您没有指定强制属性,例如Midlet-class-name,可以通过打开的应用程序描述符指定此属性。 Better way to create jad/jar file is Right Click onProject->J2ME->create package 创建jad / jar文件的更好方法是右键单击Project-> J2ME-> create package

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

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