hi,
I've installed jdk1.4 and wtk2.1 and tried the Animation example from the PDF document "Using Ant and Antenna" from the nokia pages.
It compiles well, after I inserted the line
<property name="bootclasspath.dir" value="d:\wtk21\lib\cldcapi10api.jar"/>
into build.xml - which is not stated anywhere (took me many hours to find that out!).
This is what Ant shows me in my command window (w2k):
D:\JAVA\Phase1>ant
Buildfile: build.xml
initialize:
[echo] Cleaning up...
[delete] Deleting directory D:\JAVA\Phase1\jclasses
[delete] Deleting directory D:\JAVA\Phase1\pclasses
[delete] Deleting directory D:\JAVA\Phase1\final
[mkdir] Created dir: D:\JAVA\Phase1\jclasses
[mkdir] Created dir: D:\JAVA\Phase1\pclasses
[mkdir] Created dir: D:\JAVA\Phase1\final
compile:
[javac] Compiling 3 source files to D:\JAVA\Phase1\jclasses
[javac] D:\JAVA\Phase1\src\AnimateTimerTask.java
[javac] D:\JAVA\Phase1\src\AnimationCanvas.java
[javac] D:\JAVA\Phase1\src\Animation.java
preverify:
[exec] Error preverifying class java.util.TimerTask
[exec] java/lang/NoClassDefFoundError: java/lang/Runnable
[exec] Result: 1
package:
[jar] Building jar: D:\JAVA\Phase1\final\Animation.jar
[copy] Copying 1 file to D:\JAVA\Phase1\final
run:
[exec] Create process failed
[exec] Result: 1
BUILD SUCCESSFUL
Preverifying doesn't work - anyone know what I'm supposed to do?
Thanks in advance!

Reply With Quote

