jad檔案的錯誤碼,分享

來源:互聯網
上載者:User
錯誤
jad ( Java Application Discriptor ) 檔案是J2ME的一個重要的組成部分,在我們發布J2ME程式的時候,jad檔案經常報出各種錯誤,如:

      com.sun.kvem.midletsuite.InvalidJadException: Reason = 13

其中的錯誤原因是1-52的代碼,很讓人費解。我在網上找到了這些代碼的解釋,和大家分享如下:

public static final int JAD_SERVER_NOT_FOUND = 1;public static final int JAD_NOT_FOUND = 2;public static final int MISSING_PROVIDER_CERT = 4;public static final int CORRUPT_PROVIDER_CERT = 5;public static final int UNKNOWN_CA = 6;public static final int INVALID_PROVIDER_CERT = 7;public static final int CORRUPT_SIGNATURE = 8;public static final int INVALID_SIGNATURE = 9;public static final int UNSUPPORTED_CERT = 10;public static final int EXPIRED_PROVIDER_CERT = 11;public static final int EXPIRED_CA_KEY = 12;public static final int MISSING_SUITE_NAME = 13;public static final int MISSING_VENDOR = 14;public static final int MISSING_VERSION = 15;public static final int INVALID_VERSION = 16;public static final int OLD_VERSION = 17;public static final int MISSING_JAR_URL = 18;public static final int JAR_SERVER_NOT_FOUND = 19;public static final int JAR_NOT_FOUND = 20;public static final int MISSING_JAR_SIZE = 21;public static final int SUITE_NAME_MISMATCH = 25;public static final int VERSION_MISMATCH = 26;public static final int VENDOR_MISMATCH = 27;public static final int INVALID_KEY = 28;public static final int INVALID_VALUE = 29;public static final int INSUFFICIENT_STORAGE = 30;public static final int JAR_SIZE_MISMATCH = 31;public static final int NEW_VERSION = 32;public static final int UNAUTHORIZED = 33;public static final int JAD_MOVED = 34;public static final int CANNOT_AUTH = 35;public static final int CORRUPT_JAR = 36;public static final int INVALID_JAD_TYPE = 37;public static final int INVALID_JAR_TYPE = 38;public static final int ALREADY_INSTALLED = 39;public static final int DEVICE_INCOMPATIBLE = 40;public static final int MISSING_CONFIGURATION = 41;public static final int MISSING_PROFILE = 42;public static final int INVALID_JAD_URL = 43;public static final int INVALID_JAR_URL = 44;public static final int PUSH_DUP_FAILURE = 45;public static final int PUSH_FORMAT_FAILURE = 46;public static final int PUSH_PROTO_FAILURE = 47;public static final int PUSH_CLASS_FAILURE = 48;public static final int AUTHORIZATION_FAILURE = 49;public static final int ATTRIBUTE_MISMATCH = 50;public static final int PROXY_AUTH = 51;public static final int TRUSTED_OVERWRITE_FAILURE = 52;



有了這些代碼的解釋,我們就很容易知道錯誤的原因了。

     另外,大家知道,有的手機在安裝jar檔案的時候,不需要jad檔案。這是因為手機廠商在作業系統中內建了對jar檔案的解析功能。就如同手機自動產生jad檔案,然後使用這個jad檔案安裝jar檔案一樣。


相關文章

Beyond APAC's No.1 Cloud

19.6% IaaS Market Share in Asia Pacific - Gartner IT Service report, 2018

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。