Wtk2.5.1 error

hi all,
i have both jre1.5.0_12 and wtk 2.5 on my system (win xp) everytime i try to build one of the sample apps or one of my own i keep getting an error stating that it can't find the jdk...that i need to install jre 5 or later...
can anyone tell me how to alleviate this?
thanks

Cross posting
http://forum.java.sun.com/thread.jspa?threadID=5214948&tstart=0
Cross posting is rude.
db

Similar Messages

  • Obfuscation error (The system cannot find the file specified)...

    Hii....friends
    I extracted proguard.jar file in C:\WTK2.5.2\bin\ directory
    I edited the following enteries in ktools.properties file as following....
    obfuscator.runner.class.name: com.sun.kvem.ktools.RunPro
    obfuscator.runner.classpath: C:\WTK2.5.2\bin\proguard.jar
    when I create Obfuscated package Error is occured.
    Error: C:\Documents (The system cannot find the file specified)
    Obfuscation failed.
    Build failed
    Please help this is very essential for me...my application is incompleted.

    I had the same problem)))
    My WTK:
    C:\Program Files\Java\SonyEricsson_SDK\WTK2My project:
    C:\Program Files\Java\SonyEricsson_SDK\WTK2\apps\myprojectMy error:
    Error: C:\Program (The system cannot find the file specified)
    Obfuscation failed.
    Build failedMy solution:
    1) Find and open ktoolbar.BAT
    2) Replace(Ctrl+H in notepad) all "Program Files" to "PROGRA~1"
    Edited by: k06a on Aug 24, 2009 12:16 AM

  • WTK2.2, error preverifying

    Hi
    I use WTK2.2 and JDK 1.4.2_06.
    When I build in WTK I get the following error message:
    "Error preverifying class FIPA OptDateTimeHilder
    java lang/NoClassDefFoundError: org/omg/CORBA/portable/Streamable"
    I do not have any clue how to resolve this.
    Any help is very much appreciated.
    Thanks,
    Sami

    I just found this error also.
    Solution is just not package up this file in your MIDlet.
    Since it only contains final statics these values where used are inserted directly into the other classes.
    So you don't need this class in the MIDlet.
    It's a bit poor the preverify fails though. Could have a more usful error message.

  • Error in jsr180 sip stack implementation in WTK2.5.2?

    Hi,
    I encountered error in the SIP stack implementation used in the WTK2.5.2.
    When I create a SIP message and fill all the header and add to the request a Route header
    when the created message is sent to the next hop it is send according to the Request URI
    value but not the Route header.
    I try to register my application and force SIP proxy by inserting Route header.
    This done according to RFC 3261 where Route header forces the sip transation to
    forwarded according to the 'highest' value.
    Waiting for Your feedback
    Kind regards
    Tomasz

    I am having exactly the same problem!!!!
    In fact I developed days ago an application with SUBSCRIBE and NOTIFY messages, with the J2ME client as the receiver of NOTIFY requests... the requests arrived, but the responses, once sent, never get to the NOTIFY sender.
    I asked this same question in the following forum:
    http://forum.java.sun.com/forum.jspa?forumID=82
    but at this moment nobody replies...
    Today I was checking the SIPDemo implementation in SWTK2.5, and what was my surprise when I worked out that the implementation gave the same problem... I have tried several settings modifications in the SWTK preferences and settings, but no success.
    Please, is anybody aware of how to resolve this problem??, I really need the answer.
    Ashgar... do you know where can the problem be??

  • 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;
         }

  • WTK2.2 Installation Problem on Suse 9.2

    Hi,
    I can't seem to install WTK2.2 on Suse 9.2 pro. I am using the JDK packaged with SUSE 9.2. Below is the version info:
    java version "1.4.2_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
    Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
    When I execute the WTK2.2 installation file, it terminates when it tries to extract the binary files from the installation file. Below is the error message:
    Extracting the installation files...
    Error! CRCs do not match! Got e61aebb2, expected f53ddfb0
    Failed to extract files. Installation will stop now.
    Please try to install J2ME Wireless Toolkit again, or contact [email protected] for assistance.
    Any pointer will be greatly appreciated.
    Thanks.

    Thanks. That works fine.
    I've found that /etc/alternatives/java_sdk
    and also works and is a bit more generic.
    I installed in /opt/WTK2.2 as root, and found the following was necessary to allow
    end users to run the toolkit. (NOTE: I cannot even BEGIN to tell you if this is anything
    but functional. It is most likely a security NIGHTMARE waiting to happen. You have
    been warned!)
    chmod o+w WTK2.2/apps
    chmod o+w WTK2.2/wtklib
    chmod o+w WTK2.2/sessions
    cd WTK2.2/bin
    chmod o+x defaultdevice emulator ktoolbar libjmcustommpx.so libzayit.so \
            mekeytool prefs preverify preverify1.0 preverify1.1 runmidlet utils \
            wscompile zayit

  • Error:  microedition.io.* package does not exists

    Been at this for a few days...frustration...funny.
    Using JDK 1.6 NetBeant 6.8 with WTK 2.5.2 on XP
    Was able to resolve the javax.bluetooth.* package does not exists and xylostudio by doing the following to add the libraries to the project file.
    1) Tools > Libraries
    2) in the pop up Library Manager window click 'New Library'
    3) in the pop up New Library window typed 'bluetooth' > OK
    3) highlight 'bluetooth' in Library Manager scroll menu on left
    4) click add JAR/Folder
    5) added jsr082 from C;\WTK2.5.2_01\lib\jsr082.jar
    6) click OK
    7) right click project and select properites
    8) highlight the library node under Categories on the left side of the Project Properties window
    9) 'Add Library' created 'bluetooth'
    10) click OK
    When the process was followed to resolve the microedition.io.* package does not exist error it was unsuccessful.
    The difference in the two processes being New Library name: 'microedition' and added jsr75, MIDPapi20, jsr118, then MIDPapi21 with no resolution to the errors.
    Also add the jsr75, MIDPapi20, jsr118, and MIDPapi21 directly to the project by clicking the 'Add JAR/Folder' button in the Project Properties window.
    Here is the Output:
    init:
    deps-clean:
    Updating property file: C:\Scholastic\4340MS\REU\ItsAForum\build\built-clean.properties
    Deleting directory C:\Scholastic\4340MS\REU\ItsAForum\build
    clean:
    init:
    deps-jar:
    Created dir: C:\Scholastic\4340MS\REU\ItsAForum\build
    Updating property file: C:\Scholastic\4340MS\REU\ItsAForum\build\built-jar.properties
    Created dir: C:\Scholastic\4340MS\REU\ItsAForum\build\classes
    Created dir: C:\Scholastic\4340MS\REU\ItsAForum\build\empty
    Compiling 8 source files to C:\Scholastic\4340MS\REU\ItsAForum\build\classes
    C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:8: cannot find symbol
    symbol : class Connector
    location: package javax.microedition.io
    import javax.microedition.io.Connector;
    C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:9: cannot find symbol
    symbol : class StreamConnection
    location: package javax.microedition.io
    import javax.microedition.io.StreamConnection;
    C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:10: cannot find symbol
    symbol : class StreamConnectionNotifier
    location: package javax.microedition.io
    import javax.microedition.io.StreamConnectionNotifier;
    C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:19: cannot find symbol
    symbol : class StreamConnectionNotifier
    location: class mobile.communication.Server
    private StreamConnectionNotifier server = null;
    ^
    C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:20: cannot find symbol
    symbol : class StreamConnection
    location: class mobile.communication.Server
    private StreamConnection connection = null;
    ^
    C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:58: cannot find symbol
    symbol : class StreamConnectionNotifier
    location: class mobile.communication.Server
    server = (StreamConnectionNotifier)Connector.open(URL);
    ^
    C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:58: cannot find symbol
    symbol : variable Connector
    location: class mobile.communication.Server
    server = (StreamConnectionNotifier)Connector.open(URL);
    ^
    7 errors
    C:\Scholastic\4340MS\REU\ItsAForum\nbproject\build-impl.xml:413: The following error occurred while executing this line:
    C:\Scholastic\4340MS\REU\ItsAForum\nbproject\build-impl.xml:199: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 4 seconds)
    any information would be much appreciated. Thanks,
    LD

    By completing the process shown in below link and adding the bluecove jar file directly to the project as of the reply post suggests, all compilation errors were corrected.
    http://forums.netbeans.org/viewtopic.php?t=22823&start=0&postdays=0&postorder=asc&highlight=microedition
    Thanks me for point me in the right direction,
    Me is happy.

  • Problem with WTK2.5.1 in Solaris 10

    Greetings,
    I've installed Wireless ToolKit 2.5.1 in Solaris 10 OS and after successful installation when I run the application from path /WTK2.5.1/bin/ktoolbar it gives me error like:
    ktoolbar : MMAPI_GM_SOUNDBANK=/WTK2.5.1/lib/soundman.dls is not a valid identifier.
    I've checked my audio device and multimedia supports it is working perfectly and I am stuck in between.
    I would like to clear that I am not very proficient in Solaris, so please guide me so, that I can successfully run ktoolbar from solaris.
    Thank you all

    parag.rughani
    Perhaps you might have a better chance of getting a meaningful response in the New to Solaris forum
    http://forum.java.sun.com/forum.jspa?forumID=863
    or even the General Solaris 10 Discussion forum
    http://forum.java.sun.com/forum.jspa?forumID=844
    If you decide to post there, please provide a reference and link to this post so that you are not accused of cross-posting.
    All of this may already be known to you -- providing my analysis in the hope that it may throw some small light on the problem.
    MMAPI_GM_SOUNDBANK=/WTK2.5.1/lib/soundman.dlsMMAPI -- MultiMedia API for j2me
    GM -- General Midi
    SOUNDBANK -- self-explanatory :-)
    soundman.dls -- *.dls files are Drum Kits for MIDI audio. They contain audio clips for the various drum sounds implemented through the MIDI interface, in a specified format.
    In Windows, if a custom dls file cannot be loaded, the system reverts to the default one provided by M$. Whether any error is notified or not depends on the circumstances.
    If Solaris has any similarities on this, you may be able to configure the soundman.dls from whatever is the equivalent of Windows Control Panel.
    I know that's not very helpful.
    Wish you luck, Darryl

  • How can a web service  be compliant with the WTK2.1?

    I'm using WTK2.1 to develop mobile clients consuming web services.
    After published a web service by Apache Axis, I use WTK2.1's Stub Generator to
    generate the stub class.
    As required by JSR172, I use the "document/literal" encoding style.
    The web service class has only one method:
    public int newUser(String userName, String password) {
    But when I use Stub Generator to generator the stub class, I get the following messages:
    ************************ Error messages begin *****************************
    warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "newUser"
    warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "newUser"
    warning: ignoring operation "newUser": more than one part in input message
    warning: Port "User" does not contain any usable operations
    ************************ Error messages end *****************************
    And following is the wsdl file:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://localhost:8080/web/services/User" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/web/services/User" xmlns:intf="http://localhost:8080/web/services/User" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://ws.mauction.scucdut.edu.cn" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><wsdl:types><schema targetNamespace="http://ws.mauction.scucdut.edu.cn" xmlns="http://www.w3.org/2001/XMLSchema"><element name="userName" type="xsd:string"/><element name="password" type="xsd:string"/></schema><schema targetNamespace="http://localhost:8080/web/services/User" xmlns="http://www.w3.org/2001/XMLSchema"><element name="newUserReturn" type="xsd:int"/></schema></wsdl:types>
    <wsdl:message name="newUserRequest">
    <wsdl:part element="tns1:userName" name="userName"/>
    <wsdl:part element="tns1:password" name="password"/>
    </wsdl:message>
    <wsdl:message name="newUserResponse">
    <wsdl:part element="impl:newUserReturn" name="newUserReturn"/>
    </wsdl:message>
    <wsdl:portType name="User">
    <wsdl:operation name="newUser" parameterOrder="userName password">
    <wsdl:input message="impl:newUserRequest" name="newUserRequest"/>
    <wsdl:output message="impl:newUserResponse" name="newUserResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="UserSoapBinding" type="impl:User">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="newUser">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="newUserRequest">
    <wsdlsoap:body namespace="http://ws.mauction.scucdut.edu.cn" use="literal"/>
    </wsdl:input>
    <wsdl:output name="newUserResponse">
    <wsdlsoap:body namespace="http://localhost:8080/web/services/User" use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="UserService">
    <wsdl:port binding="impl:UserSoapBinding" name="User">
    <wsdlsoap:address location="http://localhost:8080/web/services/User"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    So, can anybody tell me how to make the web service be used by the Stub Generator properly?

    Hi,
    I am new to WTK 2.1 and I am also using Axis to generate WSDL.
    one thing I figured out was to remove the namespace info behind all body tags.
    for instance in your code, replace:
    <wsdlsoap:body namespace="http://localhost:8080/web/services/User" use="literal"/>
    by
    <wsdlsoap:body use="literal"/>
    and it should work. don't ask me why but it worked for me.

  • WTK2.5 beta & S80 DP2.0 MIDP SDK problem

    Hi all,
    I am a newbie into programming for mobile devices and I need a little help in getting a the Network Demo running on the s80 emulator that nokia distribute. I have installed jdk1.5.0_07, wtk2.5 & 2.1, s80 dp2.0 midp sdk. I am able to run the demo using the Sun emulators i.e DefaultColorPhone so i can compile and run the project just fine in wtk2.5. I included the s80 sdk root folder into the wtk2.5/wtklib/devices/ directory and now can build the same project just fine, this is ofcourse after I changed the setting from CLDC1.0 to CLDC1.1 was complaining about floating point errors. I get a warning when trying to run the midlet "WARNING: Attribute value for MicroEdition-Conifugration defined in JAR manifest is not supported." then the midlet chooser selector is launched and so is the emulator. I am able to choose between the server/client radio button but when i click the select button nothing happens?
    I have runs this demo with the standard emulator the midlet is able to connect to a echo server that is running on my server and send it a message. Does anyone have any suggestions in getting this work on the s80 emulator??
    I look forward to your replies

    Update:
    Please note that I am still testing the Network Demo shipped out with the WTK2.5 SDK using a socket connection.
    I have now also added the Nokia Prototype 4.0 SDK to the WTK2.5\wtklib\devices directory and have found that some of the emulators work while others dont. Whats weird is that the s80 _640x200 MIDP emulator mostly works and actually displays that "Start" CBA where as the S80_DP2.0 MIDP emulator only shows the "SELECT" "EXIT" so this was fine to test but when I uploaded the JAR to the real phone it behaved like the S80_DP2.0 MIDP emulator which leads me to believe that there is something wrong with the code.
    Is there anyone that can help me resolve this issue, surely there are developers out there that have come across this problem.

  • 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..

  • Preverification error: Cannot find class com/sun/perseus/model/Viewport

    Hi all,
    I have a (previously) working Midlet to which I have added one line as follows:
    SVGImage image = (SVGImage)SVGImage.createEmptyImage(null);
    - and imported the necessary from javax.microedition.m2g. (I am using the library that comes with the WTK, jsr226.jar).
    This builds, jars, obfuscates fine. But when I try to preverify (using Antenna's wtkpreverify) on the jar, it gives up in disgust very swiftly as follows:
    [wtkpreverify] Error preverifying class javax.microedition.m2g.ScalableGraphics
    [wtkpreverify] VERIFIER ERROR javax/microedition/m2g/ScalableGraphics.render(IILjavax/microedition/m2g/ScalableImage;)V:
    [wtkpreverify] Cannot find class com/sun/perseus/model/Viewport
    I'm using the WTK2.5.1ea and antenna 0.9.14, CLDC1.1, MIDP2.0...
    Many thanks for any ideas.

    Problem resolved simply by replacing jsr226.jar (as distributed with WTK2.5.1ea) with m2g.jar (as distributed with J2MEPolish).

  • Wrong ELF class error when trying to run the emulator

    Hello, I've downloaded and installed both the JDK 6 Update 2 (Linux 64) and WTK 2.5.1 as described in the website and everything seems to be fine. However, whenever I try to run an examples, I get the following error:
    java.lang.UnsatisfiedLinkError: /home/myuser/WTK2.5.1/bin/sublime.so: /home/myuser/WTK2.5.1/bin/sublime.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
         at java.lang.Runtime.load0(Runtime.java:770)
         at java.lang.System.load(System.java:1005)
         at com.sun.kvem.Sublime.<init>(Unknown Source)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at com.sun.kvem.Lime.createLime(Unknown Source)
         at com.sun.kvem.KVMBridge.<init>(Unknown Source)
         at com.sun.kvem.KVMBridge.getBridge(Unknown Source)
         at com.sun.kvem.midp.MIDP.run(Unknown Source)
         at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(Unknown Source)
         at com.sun.kvem.environment.EmulatorInvoker.main(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.kvem.environment.JVM.main(Unknown Source)
    I'm running Fedora 7 x86_64
    My Java environment is:
    java version "1.6.0_02"
    Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
    My jre is a 64-bit version but the ktoolbar seems to be compatible with 32-bit versions only. is there a way to fix this?
    Any help is appreciated.

    Hi there,
    I'm having the same problem when running the emulator. I've tried changing the emulator file as suggested but have had no luck! I'm using Ubuntu and the java version im using is
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
    I have the latest version of the WTK also. The error message I get is
    ava.lang.UnsatisfiedLinkError: /home/john/Progs/WTK2.5.2/bin/sublime.so: /home/john/Progs/WTK2.5.2/bin/sublime.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
         at java.lang.Runtime.load0(Runtime.java:770)
         at java.lang.System.load(System.java:1005)
         at com.sun.kvem.Sublime.<init>(Unknown Source)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at com.sun.kvem.Lime.createLime(Unknown Source)
         at com.sun.kvem.KVMBridge.<init>(Unknown Source)
         at com.sun.kvem.KVMBridge.getBridge(Unknown Source)
         at com.sun.kvem.midp.MIDP.run(Unknown Source)
         at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(Unknown Source)
         at com.sun.kvem.environment.EmulatorInvoker.main(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.kvem.environment.JVM.main(Unknown Source)
    Any help with this would be much appreciated!
    John

  • Recording Audio in SunWTK2.5 Getting Error ..........

    Hi Every body,
    I would like to Record Audio in Sun WTK2.5, i wrote code like below
    public class SaveCapturedAudioMIDlet extends MIDlet implements CommandListener{
    // the display items
    private Display display = null;
    private Alert alert = null;
    private Command exitCommand = null;
    // players and controls
    private Player capturePlayer = null;
    private RecordControl rControl = null;
    private Player playbackPlayer = null;
    String test = System.getProperty("fileconn.dir.photos").toString();
    String url = test.substring(0, test.lastIndexOf('/')-6)+"sound/record/";
    private boolean error = false;
    public SaveCapturedAudioMIDlet() {
    // create the display
    display = Display.getDisplay(this);
    alert = new Alert("Message");
    alert.setTimeout(Alert.FOREVER);
    alert.setString("Capturing for 10 seconds. Say something intelligent!");
    exitCommand = new Command("Exit", Command.EXIT, 1);
    alert.addCommand(exitCommand);
    alert.setCommandListener(this);
    try {
    // create the capture player
    capturePlayer = Manager.createPlayer("capture://audio");
    if (capturePlayer != null) {
    t;white-space: pre;">
    // if created, realize it
    capturePlayer.realize();
    // and grab the RecordControl
    rControl = (RecordControl)capturePlayer.getControl(
    "RecordControl");
    // set the alert as the current item
    display.setCurrent(alert);
    // if it is null throw exception
    if(rControl == null) throw new Exception("No RecordControl available");
    // and set the destination for this captured data
    rControl.setRecordLocation(url+"test1.wav");
    } else {
    throw new Exception("Capture Audio Player is not available");
    } catch(Exception e) {
    error(e);
    public void startApp() {
    if(error) return;
    try {
    // first start the corresponding recording player
    capturePlayer.start();
    // and then start the RecordControl
    rControl.startRecord();
    // now record for 60 seconds
    // Thread.sleep(10000);
    Thread.sleep(10000);
    // stop recording after time is up
    rControl.stopRecord();
    // commit the recording
    rControl.commit();
    // stop the Player instance
    capturePlayer.stop();
    // and close it to release the microphone
    capturePlayer.close();
    playbackPlayer = Manager.createPlayer(url+"test1.wav");
    playbackPlayer.start();
    } catch(Exception e) {
    error(e);
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    if(capturePlayer != null) capturePlayer.close();
    if(playbackPlayer != null) playbackPlayer.close();
    public void commandAction(Command cmd, Displayable disp) {
    if(cmd == exitCommand) {
    destroyApp(true);
    notifyDestroyed();
    // general purpose error method, displays on screen as well to output
    private void error(Exception e) {
    alert.setString(e.getMessage());
    alert.setTitle("Error");
    display.setCurrent(alert);
    e.printStackTrace();
    error = true;
    and i signed midlet using SUN WTK2.5 utilities and i run project " Run via OTA" and i successfully istalled the application and when run the application i got the exception like below:::
    " java.lang.SecurityException: Application not authorized to access the restricted API "
    Can any one Help out to resolve this problem
    Thanks in Advance,,,,

    private RecordControl rControl = null;
    rControl.setRecordLocation(url+"test1.wav");
    //...... i got the exception like below:::
    " java.lang.SecurityException: Application not authorized to access the restricted API "
    ...Did you *set permissions required for setRecordLocation* ?
    If needed, [click here|http://java.sun.com/javame/reference/apis/jsr135/jsr135_rp.html] for details on MIDP/MMAPI security permissions for audio recording (capture).
    Instructions on how to set these [permissions in Wireless Toolkit|http://i44.tinypic.com/24e5i5j.jpg] are provided in documentation (section +6.1 Permissions+ in WTK 2.5.1 User Guide ).

  • 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.

Maybe you are looking for

  • How to Install Windows OS on a two partitioned internal HDD?

    Hi I have a late 2011 macbook pro 8,2 (MD318HN/A). A month ago, I installed Windows 7 using Bootcamp. For that I made a partition of 50 GB on my internal 500 GB HDD. After sometime in need of space, i formatted that 50 GB partition using Disk Utility

  • How to use signed JAR-libs in EAR

    I have a project wich depend library my_crypto, and my_crypto depend JCE. When I place these lib's to WEB-INF - all works fine. But when I remove from WEB-INF/lib my_crypto (I have to do this one!) there is an Exception: java.lang.SecurityException:

  • CBS News App

    The CBS News App just had an update on iTunes. Of course, I allowed the update. Now, I've got a "badge" on the App that won't go away. I've gone into and out of the App several times and don't understand why the badge doesn't go away. Anybody know wh

  • Pre requisites for Structural Authorizations

    Guys, Can some one tell me what are the Pre requisites that I need to follow before implementing Structural Authorizations? Please share your thoughts. Thanks, Kumar

  • Batch File Won't Run as a Scheduled Task

    I have two batch files that won't run as scheduled tasks but run perfectly fine when I double-click them. I've already set them to run with highest privileges, the account running them is an administrator account, that account has full permissions to