WTK 2.2+Proguard 3.07: Preverify Error?

I unjarred proguard.jar and added few lines to keep some classes and then jarred the folder back to wtk22/bin
When I also followed proguard's user manual to change the ktoolbar property file
obfuscator.runner.class.name: proguard.wtk.ProGuardObfuscator
obfuscator.runner.classpath: \\bin\proguard.jar
Then I tried to obfuscated my project in WTK 2.2, I got following errors:
Building "DP"
ProGuard, version 3.0.7
Reading program jar [C:\WTK22\apps\DP\bin\DP.jar]
Reading library jar [C:\WTK22\lib\midpapi20.jar]
Reading library jar [C:\WTK22\lib\cldcapi10.jar]
Preparing output jar [D:\Profiles\E50008\LOCALS~1\Temp\DP.jar]
Copying resources from program jar [C:\WTK22\apps\DP\bin\DP.jar]
Error preverifying class ad
VERIFIER ERROR ad.f(Ljava/lang/String;)Z:
Mismatched stack types
com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
Build failed
com.sun.kvem.midletsuite.InvalidJadException: Reason = 31
The jar size value in the Application Descriptor does not match the real jar file size.
Then I tried to open a simpler project and obfuscated; it worked fine.
Any suggestion?
Thanks in advance.

do anyone got the solve about it?
i just the same problem with you...
this is the following errors when i tried to obfuscated my project in WTK2.2, and i'm work with proguard3.3
Project settings saved
Building "RemoteExecMIDlet"
Build complete
Project settings saved
Building "RemoteExecMIDlet"
ProGuard, version 3.3
Reading program jar [srv/WTK2.1/apps/RemoteExecMIDlet/bin/RemoteExecMIDlet.jar]
Reading library jar [srv/WTK2.1/lib/midpapi20.jar]
Reading library jar [srv/WTK2.1/lib/wma.jar]
Reading library jar [srv/WTK2.1/lib/cldcapi10.jar]
Preparing output jar [tmp/RemoteExecMIDlet.jar]
Copying resources from program jar [srv/WTK2.1/apps/RemoteExecMIDlet/bin/RemoteExecMIDlet.jar]
Note: duplicate definition of library class [com.sun.cldc.i18n.j2me.UTF_8_Reader]
com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
Build failed
com.sun.kvem.midletsuite.InvalidJadException: Reason = 31
The jar size value in the Application Descriptor does not match the real jar file size.
Error preverifying class com.jcraft.jsch.A
VERIFIER ERROR com/jcraft/jsch/A.a(Lcom/jcraft/jsch/f;)Z:
Incompatible object argument for function call
i dont know what to do with these error...
thx..

Similar Messages

  • Preverify ERROR for in Eclipse while using SATSA-crypto.jar

    I have created simple application to encrypt the string using Cipher class like below:
    This code snippet I got from the forums.nokia;
    In this The string "THIS IS A SECRET MESSAGE" is encrypted and decrypted using the key "SECRET!!" .
    import java.security.InvalidKeyException;
    import java.security.NoSuchAlgorithmException;
    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.lcdui.Form;
    import javax.microedition.lcdui.Item;
    import javax.microedition.lcdui.TextBox;
    import javax.microedition.lcdui.TextField;
    import javax.crypto.BadPaddingException;
    import javax.crypto.Cipher;
    import javax.crypto.IllegalBlockSizeException;
    import javax.crypto.NoSuchPaddingException;
    import javax.crypto.ShortBufferException;
    import javax.crypto.spec.SecretKeySpec;
    public class FirstForm extends Form implements CommandListener {
         TextField txtData=new TextField("Enter the Data","",10,TextField.ANY);
         Command cmdEncrypt=new Command("Encrypt",Command.SCREEN,1);
         public FirstForm(String arg0)
              super(arg0);
              this.append(txtData);
              this.addCommand(cmdEncrypt);
              this.setCommandListener(this);
         public void commandAction(Command cmd, Displayable frm)
              if(cmd==this.cmdEncrypt)
                   System.out.println("Command Is Pressed.......");
                   byte[] msg = "THIS IS A SECRET MESSAGE".getBytes();
                   byte[] enMsg = new byte[10000];
                   byte[] deMsg = new byte[10000];
                   //create new cipher using DES algorithm
                   try {
                        Cipher c = Cipher.getInstance("DES");
                        //our raw byte[] key - please note that since we use DES algorithm,
                        //the key must be 8 bytes long
                        byte[] b = "SECRET!!".getBytes();
                        //init the cipher to encrypt the data
                        c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(b,0,b.length,"DES"));
                        int numBytes = c.doFinal(msg, 0, msg.length, enMsg, 0);
                        System.out.println("Encrypted Message is"+enMsg);
                        //init the cipher to decrypt the data
                        c.init(Cipher.DECRYPT_MODE, new SecretKeySpec(b,0,b.length,"DES"));
                        numBytes = c.doFinal(enMsg, 0, numBytes, deMsg, 0);
                        String s = new String(deMsg,0,numBytes);
                        System.out.println("Decrypted Message is"+s);
                   } catch (InvalidKeyException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   } catch (NoSuchAlgorithmException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   } catch (NoSuchPaddingException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   } catch (IllegalStateException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   } catch (ShortBufferException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   } catch (IllegalBlockSizeException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   } catch (BadPaddingException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
    }after clicking on command button the Encrypted and decrypted sting is shown on the console
    I have tested this code with wtk2.5.2.
    This code works fine with sun'sWTK 2.5.2
    But when; I have created project with the eclippse and wtk22
    1) I added the satsa-crypto.jar in projrct->Properties->java-Builder-Path in "Library tab"
    2)I Had also checked the checkbox before satsa-crypto.jar "Order-Of-Export Tab"
    I am using the Ant Built
    After Building I got Error saying::
    Buildfile: D:\nitins_workspace\Encrypt\build.xml
    init:
    j2mepolish:
    [j2mepolish] info: the license attribute is no longer supported. Please place your license.key file either to ${project.home} or to ${polish.home}.
    [j2mepolish] J2ME Polish 2.0-RC4 (GPL License)
    [j2mepolish] Loading device database...
    [j2mepolish] Using locale [de_DE]...
    [j2mepolish] assembling resources for device [Generic/midp2].
    [j2mepolish] preprocessing for device [Generic/midp2].
    [j2mepolish] compiling for device [Generic/midp2].
    [j2mepolish-javac-Generic/midp2] Compiling 24 source files to D:\nitins_workspace\Encrypt\build\real\Generic\midp2\de_DE\classes
    [j2mepolish] obfuscating for device [Generic/midp2].
    [j2mepolish] proguard: ProGuard, version 3.5
    [j2mepolish] proguard: Preparing output jar [D:\nitins_workspace\Encrypt\build\real\dest.jar]
    [j2mepolish] preverifying for device [Generic/midp2].
    [j2mepolish] preverify:Error preverifying class u
    [j2mepolish] preverify:    VERIFIER ERROR u.a(ILm;Lw;)V:
    [j2mepolish] preverify:Cannot find class com/sun/midp/ssl/Key
    [j2mepolish] Preverify call failed: 1
    [j2mepolish] C:\WTK22\bin\preverify.exe -classpath D:\Java\J2ME-Polish\import\midp-2.0.jar;D:\Java\J2ME-Polish\import\cldc-1.0.jar; -d D:\nitins_workspace\Encrypt\build\real\Generic\midp2\de_DE\obfuscated -nofp -nofinalize -nonative D:\nitins_workspace\Encrypt\build\real\Generic\midp2\de_DE\obfuscated
    BUILD FAILED
    D:\nitins_workspace\Encrypt\build.xml:109: Unable to preverify for device [Generic/midp2] - preverify returned result 1
    Total time: 7 seconds What may be the reason of this??

    I think you need to post the stack trace error message to get a response.

  • Wtk preverifying error problem

    hello j2me developers..
    i m stuck up with the following:
    i am using DB2everyplace api for synchronization..
    placed the jar files in the lib folder..
    but building the project leads to following error:
    Building "J2MEDB2E"
    Error preverifying class com.ibm.db2e.jdbc.DB2eBlob
    java/lang/NoClassDefFoundError: java/sql/Blob
    Build failed
    seems it is not preverifying any of the classes from the libraries added..
    any ideas plz respond...

    plz ..
    anybody can provide me a way as to how can i get the jar files preverified ....

  • JavaME SDK 3.0 EA Mac OSX: Preverify error :(

    Hi,
    Since my Windows box died on me recently I was extremely happy to learn that the JavaME SDK for Mac is in EA and downloaded and installed the whole thing. All went fine until I tried to compile my project and got preverification errors that don't make sense to me.
    Below a snippet of the output. The weird thing is that on Windows all works fine and without problems.
    If anybody has an idea on what's going on I'd appreciate some guidance and if you think it's a bug than I'll be happy to report it. Interestingly enough, this is only showing when doing a clean-build, just a build seems to work fine, until you deploy the application. Then the emulator complains about a corrupt JAR file.
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- SNIP START -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Preverifying 309 file(s) into /Users/Iwan/NetBeansProjects/projects/FriendOrFoe/frontend/IFF_FrontEnd/build/preverified directory.
    Unexpected CRC valueUnexpected CRC valueUnexpected CRC valueUnexpected CRC valueUnexpected CRC valueUnexpected CRC valueUnexpected CRC value
    Error preverifying class com.sticktailgames.iff.frontend.comm.AsynchronousPlayerRetriever
    VERIFIER ERROR com/sticktailgames/iff/frontend/comm/AsynchronousPlayerRetriever.run()V:
    Unsorted lookup switch
    /Users/Iwan/NetBeansProjects/projects/FriendOrFoe/frontend/IFF_FrontEnd/nbproject/build-impl.xml:479: Preverification failed with error code 1.
    BUILD FAILED (total time: 7 seconds)
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- SNIP END -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Iwan

    It sort of fixed the problem, now I get another preverification error:
    Preverifying 309 file(s) into /Users/Iwan/NetBeansProjects/projects/FriendOrFoe/frontend/IFF_FrontEnd/build/JavaME_SDK_3_MSA_Phone1/preverified directory.
    Error preverifying class com.sun.lwuit.animations.Transition3D
    VERIFIER ERROR com/sun/lwuit/animations/Transition3D.initTransition()V:
    Cannot find class javax/microedition/m3g/Node
    Is there anywhere defined what is implemented in the EA? Or do I need to use another distribution of LWUIT? One of the sellingpoints of JavaME SDK 3.0 was out-of-the-box support of LWUIT.
    Iwan

  • Nokia Series 40 SDK, preverify error

    When making my first project with JBuilder9 and Nokia Developer's Suite 2.2 for J2ME && Nokia Series 40 SDK, such an error appears:
    ERROR: floating-point arguments should not appear
    Error preverifying class java.lang.String
    However I dont use any floating-point arguments, there are used in java.lang.String,
    as I see.
    So how can I solve this problem?

    i have the same problem with eclipse, i think that
    eclipse isnt work so good in Nokia Developer's Suite
    2.2 for J2ME(TM), but i attache the sdk 1.1 in
    eclipse, and then run the stand alone version of
    Nokia Developer's Suite 2.2 for J2ME(TM), and have
    the same problem... how can i configure it there ?I had the same problem, but, when I turned on the built-in preverifier, the error dissapeared. What confuses me most is the fact that the error appeared suddenly after adding j2me-ws.jar to the build path and persisted even after I removed it from the class path.

  • Preverify error when netbean 4.0 build classes that import device lib

    ERROR: native methods should not appear
    Error preverifying class com.sprintpcs.media.Clip

    Hi,
    BPEL and BPEL PM do not have a good support for SOAPENC-Array: it would be very difficult to create such an array in BPEL or to receive it and manipulate it.
    The (unfortunately very intrusive) work around is to change the WSDL of the service to use a XML type defined using XML schema. This is all the more painful that JDev 9.0.4 does not have strong support for complex types.
    In general though, I would highly recommend this best practice:
    1) Start by define the WSDL contract first
    2) Then generate the server side skeleton to implement it
    3) Use BPEL as the client to this contract.
    By starting with the contract first, you make sure that 1) your interfaces are clean and coarse grained.
    2) things like java objects, sessions, etc to not leak through the interface (which would be the worst thing that could happen because it would closely link the client and the server.
    Sorry for not being more helpful. This will get radically cleaner in Oracle AS 10.1.3.
    Edwin

  • How to escape bluecove preverify error on mobile with javaFX?

    Hi all, I'm finding a problem with an application that runs for a standard execution but not on mobile emulator. I am having the following error at execution.
    Error preverifying class com.intel.bluetooth.btgoep.Connection
    java/lang/NoClassDefFoundError: com/ibm/oti/connection/CreateConnection
    ERROR: preverify execution failed, exit code: 1
    I don't know how to go through. I'm using netbeans with javaFx plugins and the application seems to be working with standard execution but not on the mobile emulmator.
    Should anyone have an idea of what is happening here I'll be strongly interested.. Thanks for help.

    The PC10 in vlan 10 can not ping the gateway (10.64.16.1) of vlan 20. It can only ping its own gateway 10.64.8.1
    Both hosts are running Windows 7 professional with firewall turned off.
    The same for the PC20 in vlan 20. It can only ping its own gateway (10.64.16.1) but not vlan10's gateway (10.64.8.1)
    In fact, just for testing purposes.
    I temporarily assign g0/1/2 (which was on vlan20) to vlan10 now. Changed the host (PC20) IP to 10.64.8.3.
    After this change, the 2 hosts can ping each other (in the same vlan 10)....that's expected. So, the OSes and firewalls issues on the hosts are not the issue. They can ping each other when they are in the same vlan.
    However, now that they are in the same vlan, they still can't ping out to G0/0 192.168.0.162.
    So, the problem is how to ping from the layer 2 EHWIC to the built-in G0/0 and G0/1 router ports?

  • Obfuscation Error: C:\Documents (The system cannot find the file specified)

    Hi,
    I want to obfuscate my jar file. for this purpose i followed the steps below.
    1. Copied proguard.jar in C:\WTK2.5.2\bin
    2. Now opened the file ktoolbar.vm , which is present in C:\WTK2.5.2\bin
    my ktoolbar.vm looks like this
    {color:#666699}C:\PROGRA~1\Java\JDK16~1.0_0\bin\java -Dkvem.home="%KVEM_HOME%" -Djava.library.path="%KVEM_HOME%/bin" -Dsun.java2d.ddlock=true -Dsun.java2d.gdiblit=false -cp "%KVEM_HOME%/wtklib/kenv.zip";"%KVEM_HOME%/wtklib/ktools.zip";"%KVEM_HOME%/bin/JadTool.jar";"%KVEM_HOME%/bin/MEKeyTool.jar";"%KVEM_HOME%/wtklib/customjmf.jar";"%KVEM_HOME%/lib/j2me-ws.jar";"%KVEM_HOME%/lib/j2me-xmlrpc.jar";"%KVEM_HOME%/bin/schema2beansdev.jar";"%KVEM_HOME%/bin/j2me_sg_ri.jar";"%KVEM_HOME%/bin/jaxrpc-impl.jar";"%KVEM_HOME%/bin/jaxrpc-api.jar";"%KVEM_HOME%/bin/jaxrpc-spi.jar";"%KVEM_HOME%/bin/activation.jar";"%KVEM_HOME%/bin/mail.jar";"%KVEM_HOME%/bin/saaj-api.jar";"%KVEM_HOME%/bin/saaj-impl.jar";"%KVEM_HOME%/bin/xsdlib.jar";"%KVEM_HOME%/wtklib/nist-sip-1.2.jar";"%KVEM_HOME%/wtklib/JainSipApi1.1.jar";"%KVEM_HOME%/wtklib/jain-sip-presence-proxy.jar" com.sun.kvem.toolbar.Main{color}
    3. my project or my workspace is at location D:\workspace\WTK
    4. Also my wtk is located at C:\WTK2.5.2
    5 Now i renamed ktoolbar.vm to ktoolbar.bat and the edited the file then added 2 lines at the beginning of ktoolbar.bat
    SET USER_HOME=D:\workspace\WTK
    SET KVEM_HOME=C:\WTK2.5.2
    6 Also i added -Duser.home=%USER_HOME% in the next line.
    7 Now my ktoolbar.bat looks like this.
    {color:#800080}SET USER_HOME=D:\workspace\WTK SET KVEM_HOME=C:\WTK2.5.2 C:\PROGRA~1\Java\JDK16~1.0_0\bin\java -Dkvem.home="%KVEM_HOME%" -Duser.home=%USER_HOME% -Djava.library.path="%KVEM_HOME%/bin" -Dsun.java2d.ddlock=true -Dsun.java2d.gdiblit=false -cp "%KVEM_HOME%/wtklib/kenv.zip";"%KVEM_HOME%/wtklib/ktools.zip";"%KVEM_HOME%/bin/JadTool.jar";"%KVEM_HOME%/bin/MEKeyTool.jar";"%KVEM_HOME%/wtklib/customjmf.jar";"%KVEM_HOME%/lib/j2me-ws.jar";"%KVEM_HOME%/lib/j2me-xmlrpc.jar";"%KVEM_HOME%/bin/schema2beansdev.jar";"%KVEM_HOME%/bin/j2me_sg_ri.jar";"%KVEM_HOME%/bin/jaxrpc-impl.jar";"%KVEM_HOME%/bin/jaxrpc-api.jar";"%KVEM_HOME%/bin/jaxrpc-spi.jar";"%KVEM_HOME%/bin/activation.jar";"%KVEM_HOME%/bin/mail.jar";"%KVEM_HOME%/bin/saaj-api.jar";"%KVEM_HOME%/bin/saaj-impl.jar";"%KVEM_HOME%/bin/xsdlib.jar";"%KVEM_HOME%/wtklib/nist-sip-1.2.jar";"%KVEM_HOME%/wtklib/JainSipApi1.1.jar";"%KVEM_HOME%/wtklib/jain-sip-presence-proxy.jar" com.sun.kvem.toolbar.Main{color}
    8 Now i opened the command promt and i executed the bat file.
    9 Now when i try to open the WTK toolkit it gives me the following error
    Fatal error : File: C:\WTK.2.5.2\bin\ktoolbar.vm does not exist
    Please help me to resolve this issue or suggest me some different way.
    Also i would like to tell that my project is completely build using netbeans 6.5 . but when i try to make the obfuscation level high using the scroll that is provided by netbeans , it gives me following error.
    {color:#ff0000}C:\Documents and Settings\SShete\My Documents\NetBeansProjects\vtms_test_lwuit_Backup\nbproject\build-impl.xml:459: Error while expanding C:\Documents and Settings\SShete\My Documents\NetBeansProjects\vtms_test_lwuit_Backup\build\obfuscated.jar
    java.io.FileNotFoundException: C:\Documents and Settings\SShete\My Documents\NetBeansProjects\vtms_test_lwuit_Backup\build\obfuscated.jar (The system cannot find the file specified)
    BUILD FAILED (total time: 8 seconds){color}
    Also i dont know what changes are to be done to the build.xml so that obfuscation can be done .
    Thats the reason why i am now opening the same project using wtk and trying to obfuscate it.

    hi....
    i have tried another way out ,
    i followed the procedure below
    In order to integrate this plug-in in the toolkit, you'll have to put the following lines in the file {j2mewtk.dir}/wtklib/Linux/ktools.properties or {j2mewtk.dir}\wtklib\Windows\ktools.properties (whichever is applicable).
    obfuscator.runner.class.name: proguard.wtk.ProGuardObfuscator
    obfuscator.runner.classpath: /usr/local/java/proguard/lib/proguard.jar
    Please make sure the class path is set correctly for your system.
    Once ProGuard has been set up, you can apply it to your projects as part of the build process. The build process is started from the WTK menu bar:
    Project -> Package -> Create Obfuscated Package
    The Toolkit obfuscates other sample projects
    However now my project gets build without errors , but when i try to create a obfuscated package it gives me the following error
    Error preverifying class bc
    VERIFIER ERROR bc.a(Z)Lhx;:
    Incompatible object argument for invokespecial
    com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
    Build failed
    Please help..

  • I'm getting no error using float in cldc1.0 with wtk2.2?

    I'm getting no error using float in cldc1.0 with wtk2.2?

    ravikumar.tj wrote:
    Please set wtk settings as cldc1.0 and midp1.0.
    Create a subclass of MIDlet as-
    public void startApp()
    float f;
    double d;
    Press Create Package, Jar and Jad files are getting generated successfully.
    If Cldc1.0 doesn't support float, I must get Compile error, isn't??That's ok, but just because you're not doing anything with those variables so the compiler ignores them.
    This should give you a preverify error:
         protected void startApp() throws MIDletStateChangeException {
              double d=0.5;
         }

  • Can't install the wtk

    i can't install the wtk
    after 2 second i get an error massage:SetupDLL\SetupDLL.cpp
    i try to get some thing in google for soulotion but it's not help
    please help me
    thanks

    i have a probem with the instalation not with the set up
    i have problem with the dll file
    my jdk is installed
    thanks for try to help me

  • Preverifier and Ant

    Hi,
    i have a problem with the preverify tool. When i use forte4j mircoedition everthing is ok. i can compile and run my sample app.
    But when i want to use the tool preverify.exe within my ant built file i get this error message:
    init:
    compile:
    preverify:
    Error preverifying class de.ka.timesheet.midp.TimeSheetMidlet
    Class loading error: Illegal constant pool index
    Result: 1
    What means "Ilegal constant pool index" ?
    this is the target in my built file executed in forte4j:
    <property name="dir.classpath.midp"
    value="${j2wtkhome}/wtklib/devices/palmos_device/midp_classes.zip"/>
    <target depends="compile" description="Create preverified classes" name="preverify">
    <exec dir="${basedir}" executable="${j2wtkbin}/preverify.exe">
    <arg line="-classpath ${dir.classpath.midp} -d ${dir.classes} ${dir.tmpclasses}"/>
    </exec>
    </target>
    I get this error message running preverify.exe in a dos box of windows nt too.
    Thanks,
    Thorsten

    Try to change your compile target.
    add the target="1.1" tag in the compile target into your ant build file like this:
    <target name="compile" depends="init">
    <echo message="Compiling..."/>
    <javac bootclasspath="..." target="1.1" ... ( rest of your compile command)/>
    </target>
    ... (the rest of your ant build file)
    It's a jsdk1.4 issue. I think it's because the preverifier expects 1.1 classes and version 1.4 of the dev kit generates 1.2 classes.
    It did work for me... hope the same for you...

  • Crazy preverifier bug using forte

    I boot my Windows 98SE machine and execute my test Midlet from forte with total success, however the second time I try to execute it I receive a "Cannot start preverifier" error. If I reboot my machine it works again, but only the one time. It is almost like the preverfier app is not closing itself down when it has verified the class first time. Can anyone help remedy this problem?
    Any help very much appreciated
    Mat

    In order to get it work, I have to press F6 a few times. I believe that it's something to do with forte not waiting for the compiler to finish before running the verifier.

  • External libs problem

    i create a pure as3 project in FB4.7 and add a swcs folder with external attribute but it does not work!
    any one help? thx!

    Did any of you get an answer to this?
    I'm getting the same error now. It was working fine, but then I uninstalled Forte and WTK, and reinstalled JDK and WTK, and now I get the same error.
    Funny thing is, it does preverify all the files. It just doesn't make the jar. So if I jar the files, the emulator can run it ok.
    Haven't figured out what is preventing the preverify tool from creating the jar (it's not a name collision problem... the same script that performed the preverify before doesn't work now), but at least there's a workaround. Maybe it'll work for you.

  • J2MEWTK for MacOSX

    Does anybody know if there is a port to macOSX for the J2MEWTK?
    Or is there anybody out there who knows how
    to do a port ?
    Kind regards

    I indeed use Forte and I succeeded in installing the WTK in Forte.
    I still can't run any demo or my own 'wireless' application.
    First of all it should be possible to select/change emulators. This is grayed out in the drop down menu.
    And second : when I try to run the software I get preverify errors. something like this :
    preverify @/tmp/preverify32641.tmp/files.txt
    preverify: parse error near ')' [1]
    preverify: parse error near ')' [12]
    preverify: permission denied [2]
    etc
    some 50 lines of error messages.
    very frustrating I have to say.
    Regards
    Werner

  • Please Help.  NetBeans IDE Problem + rt.jar.  Trouble compiling MIDlets.

    Hi all. For the past few weeks I have undertaken learning Java for mobile devices. I am having a slight problem with NetBeans 5.5 which I would appreciate help in fixing.
    Currently installed on my system:-
    - Wireless Toolkit 2.5
    - NetBeans IDE 5.5 + Mobility Pack
    - j2sdk1.4.2_13
    - jdk1.6.0
    - jre1.6.0
    - javaee sdk5_02
    (So pretty much every Java application!)
    Now the problem. Basically, if I import the following at the beginning for my MIDlet...
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;... the java.sql has red line underneath saying "package does not exist". Now, what I found is that I need to import .jar files into the Library section. I managed to fix the javax.servlet package and some others, by importing the correct .jar files, but I found that to remove the red line for java.sql I need rt.jar.
    However, this is located under one of my jre folders and not the j2me / jdk folders I have. Even though it removes the red line, when I compile the project I keep receiving "PREVERIFY" errors and "CONSTANT POOL" errors.
    Yet, if I remove the rt.jar file, these go away, but it won't compile then because it says the package is missing (back to square one!).
    So, any ideas please??? I have spent days and days just adding random .jar files to try and fix the problem but to no avail. An example of current imported .jar files in NetBeans:-
    - rt.jar
    - midpapai.zip
    - jdbc.jar
    - servlet.jar
    - runtime12.jar
    - classes12.jar
    - ojdbc.jar
    Try not to be too technical, I've only just started out. Lol. Thanks in advance!!

    well... J2ME world is quite diffirent from usual Java. Actually you will not be able to use much of the staff, that you have imported, including java.io.* (it will be only available in CDC), java.servlet.*, java.servlet.http.*, java.sql.*
    So don't even try to find where are those packages are located....
    Try from simple tutorial like:
    http://developers.sun.com/techtopics/mobility/midp/articles/wtoolkit/
    Or from documentation on Netbeans.org:
    http://www.netbeans.org/kb/trails/mobility.html

Maybe you are looking for

  • How do I add multiple images into one file?

    I'm sure this is something that's been covered in another post (or even in the help portal) but I think my wording in my search terms are not correct or... I don't know, because I just can't find what I'm looking for. I want to know how to add multip

  • Wireless and Wired Network/Bonjour Printer Settings.

    I am setting up a network for a preschool that has six Macs (MacBook, iMac Intel, Mac Mini Intel, eMac G4, iMac G5) on a network spread out around the school. Some teachers bring in their own laptops, but no frequently and most are Macs. The network

  • Document always opens in Preview mode, prefer Normal mode

    Documents always open in Preview mode, while I'd prefer the Normal mode. I tried setting the mode to Normal and saving the document, but next time I open it it again opens up in Preview mode. Can I change this somewhere so it defaults to Normal mode?

  • Can I Use Xcode in InDesign?

    I have received xcode to test from an external company to create a viewer for CAD data within our App created with the DPS.  I want to place the Xcode in a InDesgin Article used in a Folio.  Is this Possible?

  • Control of duplicate invoice posting at T.Code FB70

    Dear Experts As per clients need to we need to control with error message when user trying post duplicate customer invoice at T.Code FB70. we request your help on how do we can meet this requirement. if any body know the relevant application areas fo