Estou com um problema para rodar o build em um projeto superwaba. Li em alguns foruns que é necessário compilar as classes com o JDK inferior a versão 1.3, sendo que para isso seria necessário compilar as classes passando como parametro -target = 1.1, ficando o build.xml com a seguinte configuração:
O erro que ocorre quando rodo o build é o seguinte:
Buildfile: D:\projetos\Superwaba\build_superwaba.xml
clean:
[delete] Deleting directory D:\projetos\Superwaba\build
[delete] Deleting directory D:\projetos\Superwaba\dist
build:
[mkdir] Created dir: D:\projetos\Superwaba\build
[mkdir] Created dir: D:\projetos\Superwaba\dist
[javac] Compiling 1 source file to D:\projetos\Superwaba\build
[copy] Copying 1 file to D:\projetos\Superwaba\build
jar:
[jar] Building jar: D:\projetos\Superwaba\build\Superwaba.jar
warp:
[java] (Super)Waba Application Resource Packager for Java Version 5.0
[java] Copyright (C) Rob Nielsen 1999-2001. All rights reserved
[java] Copyright (C) SuperWaba Ltda 2002-2008. All rights reserved
[java] PDB file: Superwaba.pdb
[java] PDB name: Superwaba
[java] PDB creator: cBAN
[java] ...writing Superwaba.pdb
[java] ...adding: Buying.class
[java] FATAL ERROR!
[java] This file has an invalid .class file format.It uses a format greater than 1.1. You probably are using the javac.exe file from JDK 1.3.0 or superior. You may continue to use it, but pass into the command line this: "-target 1.1". If you read the SuperWaba Optimization Tricks Tutorial, you'll find that is a bad idea use newer JDKs. Among other more important things, like producing a slower code, you will not be able to obfuscate your code using retroguard or JOpt.
[java] Java Result: 990
prepare-exegen:
exegen-cab:
[java] SuperWaba Launch Executable Generator for Java Version 5.0
[java] Copyright (C) Rob Nielsen 1999-2001. All rights reserved
[java] Copyright (C) SuperWaba Ltda 2002-2008. All rights reserved
[java] Output file: Superwaba
[java] Class name: buy/Buying
[java] PalmOS PRC name: Superwaba
[java] Creator ID: cBAN
[java] App version: 1
[java] Basic cmdline: buy/Buying Superwaba cBAN
[java] ...writing Superwaba.prc
[java] Creating installation files...
[java] Could not find Cabwiz.exe in directories relative to the classpath. Be sure to add SuperwabaSDK/lib to the classpath
[java] Java Result: 990
all-warp:
[move] Moving 1 file to D:\projetos\Superwaba\dist
all-exegen-cab:
[move] Moving 1 file to D:\projetos\Superwaba\dist
all:
BUILD SUCCESSFUL
Total time: 3 seconds
This file has an invalid .class file format.It uses a format greater than 1.1. You probably are using the javac.exe file from JDK 1.3.0 or superior. You may continue to use it, but pass into the command line this: “-target 1.1”. If you read the SuperWaba Optimization Tricks Tutorial, you’ll find that is a bad idea use newer JDKs. Among other more important things, like producing a slower code, you will not be able to obfuscate your code using retroguard or JOpt.
O erro está ali, e vc ja tentou passar target 1.1 correto?
Que source 1.2, tenta la 1.3, nao sei se vc consegue compliance abaixo de 1.3 nao.
Nem no eclipse tem jeito.
O meu aqui ta configurado para 1.3 e ta certinho.
Vc configurou tudo de acordo com SuperWaba companion?
Eu nao uso ant aqi, so meio ogro pressas coisas eu rodo o warp e o exegen na mao…
Vai la no seu eclipse e configura o JDK Compliance para 1.3 no Java Compiler na properties do projeto, compila e muda seu ant ai tb pra source 1.3 com target 1.1
Valeu pela dica, agora está compilando corretamenta, e sobre o 2º erro, referente ao arquivo Cabwiz.exe, cujo log está abaixo
Could not find Cabwiz.exe in directories relative to the classpath. Be sure to add SuperwabaSDK/lib to the classpath, tenho que fazer alguma configuração para que o build o encontre?
Você pode me enviar o SuperWaba Companion, pois o que veio com o SuperwabaSDK que baixei não possui as páginas 204 a 248.
Amigo, tenho uma aplicação com superwaba que fiz em 2009, mas não tenho o litebase para compilá-lo no eclipse. Já procurei na internet e naõ acho a versão 1.2. Por acaso, você tem o instalador dele que possa me passar?