×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    16

    problem verifying

    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!

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    13

    u may add MIDP classes path...

    for my case, I insert both the CLDC and MIDP classpath in the 'bootclasspath" environment variable.
    I was wondering what ver of JDK r u using, is ur JDK ver 1.4.2_03 ? Cause I found some problem with this version ... emulator installation program can't detect it! May be it's something doing with this ver. of JDK too(i face other similar problem too).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×