C:\java\iDKDoJa4.0\apps\hello\bin
APP_CLASS=Hello COMSPEC=C:\WINDOWS\system32\cmd.exe JAR_PATH=C:\java\j2sdk1.4.2_12\bin\jar.exe PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.JS;.WS PROJECT_NAME=hello PROMPT=$P$G
ezplusアプリのkjxファイルはjad+jarなので、展開すれば、逆コンパイラでソースを見ることもできます。
perl kjx2jar.pl yyy.kjx
ProGuard -> DoGa -> 7-zip
| ファイル名 | 元サイズ | 最適化後サイズ | 縮小率 |
| CarRace.jar | 20015 | 16317 | 81.52% |
| donadona_climb.jar | 13991 | 11339 | 81.04% |
| fall.jar | 10404 | 8525 | 81.94% |
| kerodungeon.jar | 31615 | 23972 | 75.82% |
iアプリではStringTokenizerが使えないのでその替わり。
/**
* 文字列を分解し、配列で返す
*
* @note
* - iアプリではStringTokenizerが使えないので替わり
*/
public String[] strSplit(String str, String delim){
str = str + delim;
String[] mes = new String[0];
String[] temp = new String[0];
int t = 0;
String buf = null;
while(true){
t = str.indexOf(delim);
if(t==-1) break;
if(t==0){
buf = "";
}else{
buf = str.substring(0,t);
}
str = str.substring(t+1);
System.arraycopy(mes,0,temp,0,mes.length);
mes = new String[mes.length + 1];
System.arraycopy(temp,0,mes,0,temp.length);
mes[ temp.length ] = buf;
temp = new String[ mes.length ];
}
return mes;
}