使用 S60 Platform SDKs for Symbian OS, for Java 问题Jar file could not be initialize
<span style="font-family: Arial; line-height: 18px;"><div style="font-family: Arial; font-size: 12px; line-height: 20px; color: #5f5f5f;" class="cnt">调试执行时會跳出 S60 SDK error 的視窗中看到的訊息如下:Jar file could not be initialized.
Caught exception:
java.util.zip.ZipException: invalid entry compressed size (expected 537 but got 541 bytes)
at java.util.zip.ZipOutputStream.closeEntry(Unknown Source)
at ......
at ......
at ......
at com.symbian.io.JARFile.jarClassPath(JARFile.java:223)
at com.symbian.io.JARFile.<init>(JARFile.java:111)
at ......
at ......
at com.symbian.tools.j2me.sei.emulator.Main.main(Main.java:47)
找了幾個nokia的論壇thread終於找到解了,提供您參考:
前往Windows->Preferences->J2ME->Device Management
選擇S60的device/emulator後按右邊的edit按鈕
在出現的Basic頁籤裡的Launch Command Template裡
將[%classpath%|-classpath "%classpath%"]給移掉就搞定了
我試過是OK的,只是S60開起來會很慢,大概要等快一分鐘才會真正出現你寫的midlet啊
只寫J2ME還是用WTK的emulatro就好
页:
[1]