JAD did not have the correct media type

 

Error installing suite (37):JAD did not have the correct media type,it had-用wt

點擊右邊紅色標題查看本文完整版:Error installing suite (37):JAD did not have the correct media type,it had-用wtk打好的jad文件

用wtk打好的jad文件。然後通過網絡模擬下載的時候出現這樣的問題
  D:\midpfcs\bin>midp -transient http://127.0.0.1/MIDlet/HelloMIDlet/bin/HelloMIDl
  et.jad
  **   Error installing suite (37):JAD did not have the correct media type,it had  
  application/octet-stream
  請問這怎麼解決?


------解決方法--------------------------------------------------------
請注意本地WEB服務器JAD,JAR文件的MIME類型
  如果是TOMCAT的話,在WEB.XML中加入
 
  <mime-mapping>
  <extension>jad</extension>
  <mime-type>text/vnd.sun.j2me.app-descriptor</mime-type>
  </mime-mapping>
  <mime-mapping>
  <extension>jar</extension>
  <mime-type>application/java-archive</mime-type>
  </mime-mapping>
 
  只有瀏覽器輸出正確的MIME類型,本地OTA部署才能取得正確的JAR文件
 
------解決方法--------------------------------------------------------
如果裝了WTK的話,直接在IE地址欄輸入 http://127.0.0.1/MIDlet/HelloMIDlet/bin/HelloMIDl
  et.jad 就可以了,WTK會自己下載所需的MIDlet Suite
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章