×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    12

    Unhappy Please it is Urgent : Using Unknown Toolkit (CLDC-1.0; MIDP-1.0)

    Hi there,
    I am student in stage and I can't begin my project because I have a problem with my ant.
    Whenever I try to build project (compile) I get following error:

    Using Unknown Toolkit (CLDC-1.0; MIDP-1.0)
    C:\Users\Administrateur\workspace\WritingImageToNDEFTag\build.xml:44: Preverification failed (result=1)

    I use S40_Nokia_6212_NFC_SDK and you can see the compil result
    Please suggest me solution for this problem...

    Thanks.

    builde.xml file :

    <project name="WritingImageToNDEFTag" default="compile-real">
    <taskdef resource="antenna.properties" classpath="D:\antenna-bin-1.0.2.jar"/>

    <property name="wtk.home" value="C:\Nokia\Devices\S40_Nokia_6212_NFC_SDK"/>
    <property name="wtk.proguard.home" value="C:\proguard4.3"/>

    <property name="wtk.bluetooth.enabled" value="true" />
    <property name="wtk.midp.version" value="2.0" />
    <property name="wtk.cldc.version" value="1.1" />
    <property name="wtk.libs" value="${wtk.home}\lib"/>
    <property name="app.name" value="WritingImageToNDEFTag"/>
    <property name="app.midlet" value="org.moi.WritingImageToNDEFTag"/>

    <!--<property name="prototype.sdk.home" value="C:\backup\GASP\rfid\JSR_257_RI_1_0a\JSR_257_RI_1_0\Prototype_3_0_S40_128x128_MIDP_Emulator"/>-->

    <!--<property name="boot.classpath" value="${wtk.home}/lib/cldcapi11.zip"/>-->
    <property name="classpath" value="${wtk.libs}/cldc11.jar;${wtk.libs}/midp20.jar;${wtk.libs}/jsr082.jar;${wtk.libs}/jsr172.jar;${wtk.libs}/jsr75.jar;${wtk.libs}/jsr257.jar" />

    <target name="preproc-test">
    <!--<wtkpreprocess srcdir="src" destdir="src" symbols="COMPILE_TEST" verbose="true"/>
    --></target>

    <target name="preproc-real">
    <!--<wtkpreprocess srcdir="src" destdir="src" symbols="COMPILE_REAL" verbose="true"/>
    --></target>


    <target name="compile-test">
    <antcall target="preproc-test"/>
    <antcall target="compile"/>
    </target>

    <target name="compile-real">
    <antcall target="preproc-real"/>
    <antcall target="compile"/>
    </target>

    <target name="compile">
    <echo message="${classpath}"/>
    <delete file="${app.name}_nonobfuscated.jar"/>
    <delete file="${app.name}.jad"/>
    <delete file="${app.name}.jar"/>

    <delete dir="preverified"/>
    <mkdir dir="preverified"/>
    <wtkbuild srcdir="src" destdir="preverified" preverify="true" bootclasspath="${classpath}" cldc="true"/>

    <wtkjad jadfile="${app.name}.jad"
    jarfile="${app.name}.jar"
    name="${app.name}"
    vendor="coucou"
    version="1.0.0" >
    <midlet name="${app.name}" class="${app.midlet}" />

    </wtkjad>
    <wtkpackage jarfile="${app.name}.jar" jadfile="${app.name}.jad" obfuscate="false" preverify="true">
    <fileset dir="preverified"/>
    <fileset dir="res" includes="*.*"/>
    </wtkpackage>
    </target>

    <target name="obfuscate">
    <wtkobfuscate jarfile="${app.name}.jar" jadfile="${app.name}.jad" obfuscator="proguard">
    <preserve class="org.moi.WritingImageToNDEFTag"/>
    <argument value="-overloadaggressively"/>
    <argument value="-allowaccessmodification"/>
    <argument value="-assumenosideeffects public class java.lang.Throwable {public void printStackTrace();}"/>
    <argument value="-assumenosideeffects public class java.lang.StringBuffer {public StringBuffer();public StringBuffer(int);public StringBuffer(java.lang.String);public java.lang.String toString();public char charAt(int);public int capacity();public int indexOf(java.lang.String,int);public int lastIndexOf(java.lang.String);public int lastIndexOf(java.lang.String,int);public int length();public java.lang.StringBuffer reverse();public java.lang.String substring(int);public java.lang.String substring(int,int);}"/>
    <argument value="-assumenosideeffects public class java.lang.String {public String();public String(byte[]);public String(byte[],int);public String(byte[],int,int);public String(byte[],int,int,int);public String(byte[],int,int,java.lang.String);public String(byte[],java.lang.String);public String(char[]);public String(char[],int,int);public String(java.lang.String);public String(java.lang.StringBuffer);public static java.lang.String copyValueOf(char[]);public static java.lang.String copyValueOf(char[],int,int);public static java.lang.String valueOf(boolean);public static java.lang.String valueOf(char);public static java.lang.String valueOf(char[]);public static java.lang.String valueOf(char[],int,int);public static java.lang.String valueOf(double);public static java.lang.String valueOf(float);public static java.lang.String valueOf(int);public static java.lang.String valueOf(java.lang.Object);public static java.lang.String valueOf(long);public boolean contentEquals(java.lang.StringBuffer);public boolean endsWith(java.lang.String);public boolean equalsIgnoreCase(java.lang.String);public boolean equals(java.lang.Object);public boolean matches(java.lang.String);public boolean regionMatches(boolean,int,java.lang.String,int,int);public boolean regionMatches(int,java.lang.String,int,int);public boolean startsWith(java.lang.String);public boolean startsWith(java.lang.String,int);public byte[] getBytes();public byte[] getBytes(java.lang.String);public char charAt(int);public char[] toCharArray();public int compareToIgnoreCase(java.lang.String);public int compareTo(java.lang.Object);public int compareTo(java.lang.String);public int hashCode();public int indexOf(int);public int indexOf(int,int);public int indexOf(java.lang.String);public int indexOf(java.lang.String,int);public int lastIndexOf(int);public int lastIndexOf(int,int);public int lastIndexOf(java.lang.String);public int lastIndexOf(java.lang.String,int);public int length();public java.lang.CharSequence subSequence(int,int);public java.lang.String concat(java.lang.String);public java.lang.String replaceAll(java.lang.String,java.lang.String);public java.lang.String replace(char,char);public java.lang.String replaceFirst(java.lang.String,java.lang.String);public java.lang.String[] split(java.lang.String);public java.lang.String[] split(java.lang.String,int);public java.lang.String substring(int);public java.lang.String substring(int,int);public java.lang.String toLowerCase();public java.lang.String toLowerCase(java.util.Locale);public java.lang.String toString();public java.lang.String toUpperCase();public java.lang.String toUpperCase(java.util.Locale);public java.lang.String trim();}"/>
    <argument value="-assumenosideeffects public class java.lang.System { public static native long currentTimeMillis();static java.lang.Class getCallerClass();public static native int identityHashCode(java.lang.Object);public static java.lang.SecurityManager getSecurityManager();public static java.util.Properties getProperties();public static java.lang.String getProperty(java.lang.String);public static java.lang.String getenv(java.lang.String);public static native java.lang.String mapLibraryName(java.lang.String);public static java.lang.String getProperty(java.lang.String,java.lang.String);}"/>
    <argument value="-assumenosideeffects public class java.lang.Thread {public static void dumpStack();}"/>
    </wtkobfuscate>
    </target>


    <target name="run">

    <exec executable="${wtk.home}/bin/emulator">
    <arg line="-classpath ${app.name}.jar" />
    <arg line="-Xdescriptor ${app.name}.jad" />
    <!-- arg line="-Xheapsize:8M"/> -->
    </exec>
    </target>
    </project>


    and after compil :


    Buildfile: C:\Users\Administrateur\workspace\WritingImageToNDEFTag\build.xml
    compile:
    [echo] C:\Nokia\Devices\S40_Nokia_6212_NFC_SDK\lib/cldc11.jar;C:\Nokia\Devices\S40_Nokia_6212_NFC_SDK\lib/midp20.jar;C:\Nokia\Devices\S40_Nokia_6212_NFC_SDK\lib/jsr082.jar;C:\Nokia\Devices\S40_Nokia_6212_NFC_SDK\lib/jsr172.jar;C:\Nokia\Devices\S40_Nokia_6212_NFC_SDK\lib/jsr75.jar;C:\Nokia\Devices\S40_Nokia_6212_NFC_SDK\lib/jsr257.jar
    [delete] Deleting directory C:\Users\Administrateur\workspace\WritingImageToNDEFTag\preverified
    [mkdir] Created dir: C:\Users\Administrateur\workspace\WritingImageToNDEFTag\preverified
    [wtkbuild] **************************************************************
    [wtkbuild] * Antenna 1.0.1 initialized for project "WritingImageToNDEFTag" *
    [wtkbuild] * Using Unknown Toolkit (CLDC-1.0; MIDP-1.0) *
    [wtkbuild] **************************************************************
    [wtkbuild] Compiling 1 source file to C:\Users\Administrateur\workspace\WritingImageToNDEFTag\23fe55a0.tmp\tmpclasses
    [wtkbuild] Preverifying C:\Users\Administrateur\workspace\WritingImageToNDEFTag\23fe55a0.tmp\tmpclasses
    [wtkbuild] ERROR: floating-point arguments should not appear
    [wtkbuild] Error preverifying class java.lang.String
    [wtkbuild] Error preferifying, log file not found: C:\Users\Administrateur\workspace\WritingImageToNDEFTag\preverified\jarlog.txt


    BUILD FAILED
    C:\Users\Administrateur\workspace\WritingImageToNDEFTag\build.xml:44: Preverification failed (result=1)

    Total time: 920 milliseconds

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Please it is Urgent : Using Unknown Toolkit (CLDC-1.0; MIDP-1.0)


Similar Threads

  1. IRDA connection for MIDP 1.0 ?
    By joecoolman in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2007-09-27, 21:44
  2. Developing Nokia 6600 Apps with MIDP 2.0 and CLDC 1.0
    By KiwiChriss in forum Mobile Java General
    Replies: 3
    Last Post: 2005-02-04, 11:03
  3. How can I create a TextField with DECIMAL constraints in MIDP 1.0
    By sfahadahmed in forum Mobile Java General
    Replies: 1
    Last Post: 2005-02-01, 09:54
  4. Replies: 1
    Last Post: 2002-12-18, 11:30
  5. MIDP 1.0 release for Communicator 9210 ?
    By TobiARA in forum Mobile Java General
    Replies: 0
    Last Post: 2002-08-07, 06:23

Posting Permissions

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