J2MEWTK 1.0.2 and J2MEWTK 1.0.3

I've installed version 1.0.3 and it runs well, but I want to know if I can use other classes for version 1.0.2, because it can for version 1.0.3.
Thanks.

I think he refers to the importing of classes placed in the "apps/libs" and "apps/<MIDLET>/libs" directories.
and I suspect you are going 2 say no ;-)
1 point i would like to raise with regard to j2mewtk 1.0.3 and its inclusion of the contents of the libs dir into the classpath.
If you modify/replace a jar/zip file in the global libs dir, you have to delete all the classes in tmpclasses and tmplibs before any compiled midlet will use the new jar/zip file. Its incredibly tedious, and a cause of many bugs ;-(
Also; i've found that recompiling a midlet that uses the old version of a global lib will infact replace the new lib file with the old 1 unless you delete the contents of tmplib/tmpclasses.
example.
I have a Midlet 'Defender'
I also have a jar file 'Shared.jar' in the 'apps/lib' dir.
If I replace the Shared.jar with a different version and recompile Defender (without deleting apps/tmplibs and apps/Defender/tmpclasses) Two things will happen
1) Defender will compile using the old Shared.jar
2) the 'new' Shared.jar in apps/lib will be replaced with the an Shared.jar - no idea where it is gettin this old Shared.jar from.
ALSO
an unrelated problem, but equally important.
I have managed to write a midlet that works fine on win9x, but crashes the emulator in win2k.
the error follows.
'zayit.exe'
The instruction at 0x77f8aa57" referenced memory at "0x00000034" the memory could not be "read".
The memory address and instruction are the same everytime.
Do you want me 2 post source?
rob,

Similar Messages

  • Date difference between j2mewtk and j2se

    In j2mewtk, I have
    DateField aDateField = new DateField("Date", DateField.DATE);
    // ...I pick March 27, 2002 on the UI for aDateField
    long j2meLongDate = aDateField.getTime();
    then I pass j2meLongDate to a server side program, which is running in j2se environment, and I do
    Date date = new Date(j2meLongDate);
    System.out.println(date);
    // print out March 26, 2002 !!!!
    Can somebody tell me why and how to solve the problem?
    Thanks,
    -John

    I think you have a problem with the timezones; there are different in both sides.
    Try to set them with the system property user.timezone. You can do it either inside the code (System.setProperty("user.timezone") )or in the command line (-Duser.timezone=...)
    Ana

  • Help: Error when try to run j2mewtk 1.0.3 under redhat linux7.1

    I downloaded and installed a j2mewtk 1.0.3 beta release onto my linux pc,
    but I got message when I tried to run ktoolbar.sh:
    $ sh ktoolbar.sh
    ktoolbar.sh: line 23: 2200 Segmentation fault ${javapathtowtk}java
    -Dkvem.home=${KVEM_HOME} -cp ${KVEM_LIB}/kenv.zip:${KVEM_LIB}/ktools.zip
    com.sun.kvem.toolbar.Main $*
    Also same thing happens when I run emaultor.sh and other *.sh,
    $ sh emulator.sh
    emulator.sh: line 23: 2251 Segmentation fault ${javapathtowtk}java
    -Dkvem.home=${KVEM_HOME} -cp ${KVEM_LIB}/kenv.zip:${KVEM_LIB}/ktools.zip
    com.sun.kvem.environment.EmulatorWrapper $* 0
    I installed a JDK java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
    and it works fine with my other java applications.
    I tried to set LD_ASSUME_KERNEL=2.2.5, it doesn't help.
    Other environment:
    AMD K2-300 CPU with 228MB RAM and enough harddisk space.
    Linux 7.1 2.4.2-2 and glibc 2.2.2-10(which comes with linux 7.1
    standard installation).
    Thank you very much!

    [raybao],
    You might want to erase the previous installation and install the recent officially released version of the J2ME Wireless Toolkit 1.0.3 from:
    http://developer.java.sun.com/developer/releases/j2mewtoolkit/
    If you still encounter the same errors, please post your test results here and we might want to do some more investigation.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    htpp://www.sun.com/developers/support/

  • J2mewtk 1.0.2 - integration problem

    Does the integrated installation of the j2me wireless toolkit still work with Forte CE ?
    I have tried and I no longer get the MIDlet and MIDlet Suite options in the menu when I select new.
    I have tried with forte CE 3.0 and 2.0

    The documentation states that forte s/b installed first,
    then j2mewtk. However, regardless of the order in which
    they are installed, there is no integration between
    forte4j and the wireless toolkit.
    I am using:
    j2me_wireless_toolkit-1_0_1-fcs.exe (5,608,758 bytes)
    forte_ce_3.exe (28,915,466)
    If anyone has any experience with these two integrating,
    I would love to hear how they did it. BTW, I have installed this on 3 different machines and another developer on-site has installed it on another system, all
    without success.

  • J2mewtk: emulator error

    Hi,
    I am trying to generate and deploy an example MIDP application. I installed j2mewtk and MIDP4Palm and this is going wrong:
    emulator -classpath \ /usr/lib/j2mewtk/lib/midpapi.zip:/usr/lib/java/jre/lib/rt.jar \ -Xdescriptor:gmr-1.4.jad
    starts the emulator of j2mewtk, but when I trie to start the application, the error occurs:
    Unable to create MIDlet Start
    java.lang.ClassNotFoundException: Start
    at com.sun.midp.midlet.Selector.commandAction(+47)
    at javax.microedition.lcdui.List.keyPressed(+71)
    at javax.microedition.lcdui.Display$DisplayAccessor.keyEvent(+147)
    at com.sun.kvem.midp.lcdui.EmulEventHandler$EventLoop.run(+275)
    (similar error occurs for the MIDP4Palm example Worm.jad/.jar):
    These are my .jad and MANIFEST.MF files:
    --------------------------gmr-1.4.jad
    --------------------------MANIFEST.MF

    --------------------------gmr-1.4.jad
    MIDlet-Name: GMR
    MIDlet-Version: 1.4
    MIDlet-Vendor: Gerrit Leder
    MIDlet-Description: Sample application GMR for MIDP
    MicroEdition-Profile: MIDP-1.0
    MicroEdition-Configuration: CLDC-1.0
    MIDlet-1: GMR,gmr.png,Start
    MIDlet-Icon: gmr.png
    MIDlet-Jar-URL: gmr-1.4.jar
    MIDlet-Jar-Size: 25001
    Manifest-Version: 1.0
    Main-Class: Start
    Created-By: Gerrit Leder
    MIDlet-Name: GMR
    MIDlet-Version: 1.4
    MIDlet-Vendor: Gerrit Leder
    MIDlet-Description: Sample application GMR for MIDP
    MicroEdition-Profile: MIDP-1.0
    MicroEdition-Configuration: CLDC-1.0
    MIDlet-1: GMR,gmr.png,Start
    --------------------------MANIFEST.MF

  • 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

  • J2MEWTK 1.0.3: i85s model is wrong

    Does anybody know why the i85s emulator model that ships with v1.0.3 of the WTK features 256 color grayscale, when the real device only has 4 color grayscale. Also, the real device is 111x100, whereas the emulator version is 105x78.
    Is there any way to change this to make it right, ie a device editor or something to change the parameters?
    Thx,
    Fred

    you can change the phone property by modifying it's "Motorola_i85s.properties" file under the folder "C:\j2mewtk\wtklib\devices\Motorola_i85s". Besides, if you need to change the screen size, you may have to resize the phone image, otherwise it may shows a little bit strange when you using it.

  • Images with j2mewtk

    Has anybody ever managed to display images (png) with transparent background on the emulator?
    Greetinx
    Ben

    Do you have rectangular borders around your pictures? The application I am developing requires pictures to overlap each other and as such, the opaque borders cover the underlying picture (or whatever picture that has been called first). I'm also trying to find out how to get transparent png files to display.
    I tried cutting the exact shape onto a transparent canvas in photoshop but the application would not run after that.

  • J2mewtk 2.0: PushRegistry emulator test problem (push registration file)

    Hi all,
    I have created a mipd 2.0 midlet that uses the PushRegistry to listen for incomming data.
    The PushRegistry entry is dynamic created with the code:
    PushRegistry.registerConnection("socket://:12345", "untitled1.MIDlet1", "*");
    Everything compiles ok, but when I test the midlet in the DefaultColorPhone emulator the broblems begins. The emulator/midlet does not react on incomming connections on the port.
    The emulator outputs the following warning witch could explain why:
    "Warning: could not write push registration file((null)): NULL filename"
    How do I fix this problem?
    Thanks
    Dalingo

    Hi,
    You could select WTK menu Run via OTA and install your application.it will work well.
    In addition you could check the file pushlist.txt
    for you registration of push.
    john

  • Problem while Installing J2MEWTK

    I am using Java jdk1.3.1_02, but shows....
    Testing /usr/local/Java/jdk1.3.1_02/bin/java...
    Testing /usr/bin/java...
    Warning: Major version number mismatch.
    Warning: Minor version number mismatch.
    No suitable Java interpreter was detected
    This error. Not sure of the problem .
    I am using Mandrake 8.2 as OS.
    j2me_wireless_toolkit-2_0-beta2-bin-linux-i386.bin is the binary version of Installation file i am trying out.

    Looks like you might have more than one VM in your PATH or CLASSPATH variables.

  • How to run a midlet on a real device and  other questions!!VERY VERY URGENT

    PLEASE I NEED HELP FOR ALL THESE DETAILS
    AS SOON AS POSSIBLE
    hi
    i would like to know the following details regarding
    J2ME:
    1. What is the size of a KVM(Kilobyte Virtual Machine)?
    2. What would be approximately the memory size
    of a mobile phone?
    3. How do i transfer my midlet application developed
    with the help of a J2ME tool kit to a mobile device?
    4. Should the device to which i am transferring
    be MIDP compliant alone i.e as of now
    i can transfer my midlet application only
    to an MIDP compliant mobile device?Or rather
    what are the in-built features/softwares/specification
    a mobile device should have before i transfer
    a midlet to a mobile device??
    5.Suppose i have written midlets...and put them
    in .jad and .jar files(midlet suite has been created).
    Now suppose i have to download it to my
    mobile phone,how do i do it?
    And if other people have to download it to
    thier mobile device...i need to put it on the web-site
    right?How do actually put my midlet to a web-site?
    Are there any steps involved for all that?
    6.Will the mobile device have ENOUGH MEMORY
    for executing the midlet which i have created
    considering the memory constraints of a mobile
    device.Also the fact that the KVM also
    would take up a lot of space though it is measured
    in kilobytes
    thanx in advance

    2. What would be approximately the memory size
    of a mobile phone?
    This depends on the phone vendors.But the min size should me 128kb.Normally it should be 128 to 512 kb.
    3. How do i transfer my midlet application developed
    with the help of a J2ME tool kit to a mobile device?
    There no provision to do this with j2mewtk.
    Once angin this depends on the phone vendors.If the phone supports to download from a site then you can directly download it from that site or you have to connect to pc(you have to install the Java Application Manger) and then you can do it by using a serial cable.
    4. Should the device to which i am transferring
    be MIDP compliant alone i.e as of now
    i can transfer my midlet application only
    to an MIDP compliant mobile device?Or rather
    what are the in-built features/softwares/specification
    a mobile device should have before i transfer
    a midlet to a mobile device??
    The device must be j2me enable.ie midp/cldc compatble.Then you can download the application on to the device.
    5.Suppose i have written midlets...and put them
    in .jad and .jar files(midlet suite has been created).
    Now suppose i have to download it to my
    mobile phone,how do i do it?
    And if other people have to download it to
    thier mobile device...i need to put it on the web-site
    right?How do actually put my midlet to a web-site?
    Are there any steps involved for all that?
    How to download i already explained in q3.
    If you place the .jad and .jar in www.j2me.com/app/
    then In your jad you must give the url of the midlet.
    Then any one can download your application.
    6.Will the mobile device have ENOUGH MEMORY
    for executing the midlet which i have created
    considering the memory constraints of a mobile
    device.Also the fact that the KVM also
    would take up a lot of space though it is measured
    in kilobytes
    Once again This also depends on the phone vendors only.For motorola i85 they support 50kb, NTTDoCoMo phones they support only 10kb size of your application.
    All The Best
    Gone anything worng plz let me know
    koka

  • Preverify and inner classes

    Hi. I'm trying to use a makefile to reduce build time for my project. The way it works:
    1. compile all the altered .java files
    2. preverify all of the replaced/new .class files from step 1 -- each individual file by file.
    However, I've run into a serious stumbling block. Some of my .java files contain inner classes. Step 2 works perfectly on all of the main .class files. But it simply skips the inner class .class files. I tried it manually and it had the same effect.
    Here is the command line (altered for confidentiality, but effectively the same).
    preverify -classpath "h:\\j2mewtk\\lib\\midpapi.zip;blahtmp" -d blahclasses foo.bar.baz.Foodle$FoodleFun
    This does not produce the desired output in blahclasses--it produces nothing! I'd really appreciate it if someone could tell me what to do. Is it ignoring everything after the $ sign?
    --Impulse.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    OK, well, I solved it myself. Turns out that I needed to get my makefile to replace every '$' with '\$', and then it worked perfectly.
    So I'm giving all my Duke Dollars to myself grin
    --Impulse.                                                                                                                                                                                                                                                                                                                                                                                                               

  • JAVA ME - Problems compiling and running (using Eclipse)

    Hello,
    I am new to Java ME and I am trying to run a copied HelloMIDlet application. I am getting following error when I am trying to run the application:
    Running with storage root C:\Users\Niklas\j2mewtk\2.5.2\appdb\MediaControlSkin
    Running with locale: Swedish_Sweden.1252
    Running in the identified_third_party security domain
    java.lang.NullPointerException
         at javax.microedition.lcdui.Item.addCommandImpl(+11)
         at javax.microedition.lcdui.StringItem.addCommandImpl(+11)
         at javax.microedition.lcdui.Item.addCommand(+11)
         at HelloMIDlet.<init>(+99)
         at java.lang.Class.runCustomCode(+0)
         at com.sun.midp.midlet.MIDletState.createMIDlet(+34)
         at com.sun.midp.midlet.Scheduler.schedule(+52)
         at com.sun.midp.main.Main.runLocalClass(+28)
         at com.sun.midp.main.Main.main(+80)
    Execution completed.
    3415817 bytecodes executed
    17 thread switches
    1667 classes in the system (including system classes)
    17760 dynamic objects allocated (533540 bytes)
    2 garbage collections (459436 bytes collected)And the applicaiton:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HelloMIDlet extends MIDlet
           implements CommandListener {
      // The exit command
      private Command exitCommand;
      // The display for this MIDlet
      private Display display;   
      // create a ticker
      private Ticker hi = new Ticker("J2ME is cool");
      public HelloMIDlet() {
        display = Display.getDisplay(this);
        exitCommand = new Command("Exit", Command.SCREEN, 2);
      public void startApp() {
        TextBox t = new TextBox("Hello MIDlet",
                    "Wireless Internet", 256, 0);
        t.addCommand(exitCommand);
        t.setCommandListener(this);
        t.setTicker(hi); // set the ticker
        display.setCurrent(t);
      public void pauseApp() { }
      public void destroyApp(boolean unconditional) { }
      public void commandAction(Command c, Displayable s) {
        if (c == exitCommand) {
          destroyApp(false);
          notifyDestroyed();
    }I did try to remove as much code as possible still being able to compile it. Exactly the same type of error was presented still...
    I have another MIDlet in the same projects that works fine.
    What is the problem?
    Thank you in advance!
    Best Regards,
    Niklas

    java.lang.NullPointerException
         at HelloMIDlet.<init>(+99)
    ...Try to modify your code about as follows:
      private Ticker hi;  // initialize ticker in startApp
    /* don't override the MIDlet constructor
      public HelloMIDlet() {
      public void startApp() {
        // initialize all MIDP UI stuff in startApp
        hi = new Ticker("J2ME is cool");
        display = Display.getDisplay(this);
        exitCommand = new Command("Exit", Command.SCREEN, 2);
        TextBox t = new TextBox("Hello MIDlet",
                    "Wireless Internet", 256, 0);
        t.addCommand(exitCommand);
        t.setCommandListener(this);
        t.setTicker(hi); // set the ticker
        display.setCurrent(t);
    //...The problem might be caused by initializing MIDP UI stuff prior to entering startApp method. I also think that overriding MIDlet constructor is not quite a good idea. Check [MIDP tutorials (Google search shows plenty)|http://www.google.com/search?q=MIDP+tutorials] if you're interested to know more details on that.

  • Libraries and midp

    is there a possibility to ship my libary as binary for midp?
    everytime i try to integrate a binary library my m50 Siemens emulator displays "could not launch application" so am i able to bild a new midlet upon a binary library in a jar file?
    if yes
    does this library work on every device if it uses no native methods?
    or
    how do i have to compile such a library?
    if not
    where is the statement from sun that libraries must be available in source code if they will be used in a 3rd party project?
    thanx fro answering
    christian

    Have you tryied to user Sun's emulator J2MEWTK?
    It has the 'lib' folder where the libraries are stored.
    Maybe your emulator works only with sources. Maybe it isn't able to launch binaries, but only compiling sources. This may be so because the emulators launch pure J2SE classes, and do not work with J2ME format for binaries.

  • How to compile and creat JAR with native function

    Hi there,
    I wrote some native function for J2ME. But it seems like using J2ME wireless Toolkits, we can not compile native function. Is it right?
    Is anyone knowing how to compile and make JAR with J2MEWTK or command line?
    Thanks,
    Merry Christmas!!

    [zack327],
    JNI like or native interfaces APIs is not supported in the CLDC/MID Profile 1.0 specification. If you have J2ME code that includes JNI code, the J2MEWTK tool will not compile successfully for you.
    To package the compiled code to a MIDlet suite .jar file, use the 'Package' command in the J2MEWTK toolkit. It is found on the top menu bar 'Project' option as item on the dropdown list.
    To package the MIDlets into a MIDlet suite .jar file from the command line, you can execute the usual jar file command:
    jar cf MyMIDletSuite.jar Midlet.class
    You will also need to create a MIDlet .jad Application Descriptor file as well.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

Maybe you are looking for

  • Huge bug found with iphone 2.0 firmware and windows xp sp3

    I wasn't sure where to post, so please check this link http://discussions.apple.com/thread.jspa?threadID=1598283&tstart=0

  • PLM: Business Events Documentation

    Hi, I can't find proper documentation of the PLM Business Events. The PLM/PIM Implementation Guides provide only a list of event names but no further information on when these are raised and which parameters can be used when subscribing or writing cu

  • Sum In Sub Query

    Hi, How to get sum of quantity from each table based on Recipe Id from Raw Material Preparation table. Ex: Raw material preparation table can have multiple records in Vacuum mixing table like wise Vacuum mixing table can have multiple records in Mate

  • Error with Excel 2007

    Dear All, We developed a planning application using BPS.  The existing systems had Excel 2003 installed in them.  The Excel layouts were designed with heavy Macro coding in the background. Recently Excel 2007 was installed in our machines.  But, unfo

  • Please, I beg you, all my browsers still crash

    I have two unresolved posts open on this problem already from January 2006 and August 2006. But this has become somewhat urgent in the last 24 hours and I could really use some help. http://discussions.apple.com/thread.jspa?threadID=595135&tstart=0 H