使用 S60 Platform SDKs for Symbian OS, for Java 问题Jar file could not be initialize

调试执行时會跳出 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就好

 

原来的启动参数:

%executable% [%debugPort%|-Xdebug -Xrunjdwp:transport=dt_socket,suspend=y,server=y,address=%debugPort%] [%classpath%|-classpath "%classpath%"] -Xdevice:%device% [%jadfile%|"-Xdescriptor:%jadfile%"] [%verbose%|-Xverbose:%verbose%] [%heapsize%|-Xheapsize:%heapsize%] [%securityDomain%|-Xdomain:%securityDomain%] %userSpecifiedArguments% [%target%|%target%] [%otaurl%|-Xjam:transient=%otaurl%]

 

你可能感兴趣的:(java,socket,OS,Symbian,Nokia)