用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