Error runing MIDlet's with Wireless Toolkit

Hi
I'm having problems executing MIDlet's. I'm using WTK2.1 and j2sdk1.4.2_04. When I try to run the examples in the wireless toolkit I get the following error:
Error running executable C:\WTK21\bin\zayit
java.net.BindException: Cannot assign requested address: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
     at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
     at java.net.ServerSocket.bind(ServerSocket.java:318)
     at java.net.ServerSocket.<init>(ServerSocket.java:185)
     at java.net.ServerSocket.<init>(ServerSocket.java:97)
     at com.sun.kvem.Lime.runClient(Unknown Source)
     at com.sun.kvem.KVMBridge.runKVM(Unknown Source)
     at com.sun.kvem.KVMBridge.runKVM(Unknown Source)
     at com.sun.kvem.midp.MIDP$5.run(Unknown Source)
Has anybody encountered this problem or know how to solve it? Any answers will be greately apreciated
thanx
christian

I had the same problem. I simply allowed my firewall software to allow the C:\WTK21\bin\zayit application full access. Previously even when I disabled the firewall it still wouldnt work, until i did the above.
Hope this helps

Similar Messages

  • How to use assert with wireless toolkit?

    Hi,
    I am trying to find out how to use assert with wireless toolkit. I have found that I need to pass "-source 1.4" to the java compiler. But I can't find any documentation on how to do it.
    I'm using J2ME Wireless Toolkit 2.2.
    thanks
    Ludde

    Here's a quote from an article on Java World at http://www.javaworld.com/javaworld/jw-11-2001/jw-1109-assert.html
    "To support the new assertion facility in J2SE 1.4, the Java platform adds the keyword assert to the language, an AssertionError class, and a few additional methods to java.lang.ClassLoader."
    So I really think it's part of 1.4.

  • Null Pointer Exception and Illegal Arguement when ran with Wireless Toolkit

    The following code throws a null pointer exception after it tried to initialize the textBox. I am not sure if there is something I am not importing, or if it's just because I'm sick and my head is cloudy. :-}.
    I am using Wireless Toolkit 2.2 and Java 5.0
    Anyhelp would be appreicated. Thank You.
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class TacticalTestMain extends MIDlet implements CommandListener {
         private Display display;
         private Form formMain;
         private TextBox tbHelp;          //Text Box for help Command
         private Command cmExit;          //A button to exit midLet
         private Command cmBack;          //Go "back" to main form
         private Command cmHelp;          //Ask for help
         public TacticalTestMain()
              display = Display.getDisplay(this);
              formMain = new Form("Tactical Survey Program");
              cmExit = new Command("Exit", Command.SCREEN, 1);
              cmBack = new Command("Back", Command.BACK, 1);
              cmHelp = new Command("Help", Command.HELP, 1);
              formMain.addCommand(cmExit);
              formMain.addCommand(cmBack);
              formMain.addCommand(cmHelp);
              formMain.setCommandListener(this);
              System.out.println("Before Create Text Box");
              //Create the help textBox with a max of 25 charecters
              tbHelp = new TextBox("HeLp", "You can press the back button", 25, 0);
              tbHelp.addCommand(cmBack);
              tbHelp.setCommandListener(this);
              System.out.println("AfTER Create Text Box");               
         }//end constructor
         public void startApp()
              System.out.println("Inside StartApp()");
              display.setCurrent(formMain);
         }//end startApp()
         public void pauseApp()
         }//end pauseApp
         public void destroyApp(boolean unconditional)
              notifyDestroyed();
         }//end destroyApp()
         //Check to see if the exit button was selected
         public void commandAction(Command c, Displayable d)
              System.out.println("Inside commandAction()");
              String sLabel = c.getLabel();
              if(sLabel.equals("Exit"))
                   destroyApp(true);
    Errors from the KToolbar:
    Running with storage root DefaultColorPhone
    Before Create Text Box
    Unable to create MIDlet TacticalTestMain
    java.lang.IllegalArgumentException
         at javax.microedition.lcdui.TextField.setChars(+105)
         at javax.microedition.lcdui.TextField.setString(+27)
         at javax.microedition.lcdui.TextField.<init>(+134)
         at javax.microedition.lcdui.TextBox.<init>(+74)
         at TacticalTestMain.<init>(+134)
         at java.lang.Class.runCustomCode(+0)
         at com.sun.midp.midlet.MIDletState.createMIDlet(+19)
         at com.sun.midp.midlet.Selector.run(+22)
    Execution completed.
    743701 bytecodes executed
    23 thread switches
    741 classes in the system (including system classes)
    4071 dynamic objects allocated (120440 bytes)
    2 garbage collections (91412 bytes collected)

    Hi zoya,
    Here is the problem:
    tbHelp = new TextBox("HeLp", "You can press the back button", 25, 0);
    This line declares a maximum textbox size of 25 but in reality he is declaring a textbox of size 29.
    Thats why it is throwing the illegal argument.
    happy coding :)

  • Creating a project with wireless toolkit

    Hi everybody,
    I'm trying to create a project with WTK 2.1 and I can't. I follow the tutorial steps but after building successfully the sources I run them and appears me the following lines:
    Unable to create MIDlet BotonMid
    java.lang.ClassNotFoundException: BotonMid
    at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
    at com.sun.midp.midlet.Selector.run(+22)
    Execution completed.
    Selecting new project in the wireless toolkit I type the following:
    Project name botonoriginal
    Midlet class name BotonMid
    BotonMid is the name of a java file and is the name I have in the line
    public class BotonMid extends MIDlet implements CommandListener
    Why can't I create the project?
    Thanks.

    Thanks for the responses. But both solutions proposed doesn't work and I don't know why. First of all I try to compile the BotonMid.java file using javac and it appears me 29 errors. I'm confused because when I build the project is successful.
    Maybe there is a J2ME compiler (j2mec for example) but I don't find in the web. I also try to type a public constructor but appears me the same error.
    And my question is: how can I compile the java file without errors? I don't understand why appears me 29 errors if the file building is sucssesful.
    Thanks.

  • Error -2147418113 when connecting with SQL toolkit

    I have no trouble connecting with DBConnect( ) to an Access database.  However, when I try to connect to an Oracle database (Oracle73 driver), I get error -2147418113 "Catastrophic failure".  Any ideas?  Thanks.

    Hi Gris, 
    This seems to be a relatively common error when connecting to SQL databases and is not necessarily related to LabWindows/CVI. The following are several third party resources that I hope you will find helpful in your troubleshooting: 
    Microsoft Support 1
    Microsoft Support 2
    Microsoft Support 3
    There is one KnowledgeBase referring to this error when expereinced in our LabVIEW Database Connectivity that you may also find helpful: 
    Receiving Error -2147418113 "Catastrophic Failure in xxx.vi" When Using Database Connectivity Toolki...
    I hope this helps!
    Regards,
    Jackie
    DAQ Product Marketing Engineer
    National Instruments

  • Java Wireless Toolkit

    Hi everyone, i'm new in this forum and i'm from Brazil =)
    I'm trying to install this in my pc, but it's win98 and i didn't have success. Have anyway to install in win98, or have another toolkit that works with win98?

    Hey.
    Right, last night I downloaded the latest version of JDK - version 1.5.
    I installed it successfully.
    So in the folder C:\ Java there are two folders: Jdk-1.5_etc and JRE-1.5_etc.
    Next I downloaded and installed the latest version of the wireless toolkit.
    It saw that I had the JDK installed at th correct folder, and it installed at C:\WTK20 - said it installed correctly.
    So, next I select create project - call it hello world.
    Then I place the following code in the src folder of the helloWorld folder:
    * Copyright 2000-2001 by Sun Microsystems, Inc.,
    * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
    * All rights reserved.
    package examples.helloworld;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HelloWorld extends MIDlet implements CommandListener {
    private Command exitCommand;
    private TextBox tb;
    public HelloWorld() {
    exitCommand = new Command("Exit", Command.EXIT, 1);
    tb = new TextBox("Hello MIDlet", "Hello, World!", 15, 0);
    tb.addCommand(exitCommand);
    tb.setCommandListener(this);
    protected void startApp() {
    Display.getDisplay(this).setCurrent(tb);
    protected void pauseApp() {}
    protected void destroyApp(boolean u) {}
    public void commandAction(Command c, Displayable d) {
    if (c == exitCommand) {
    destroyApp(false);
    notifyDestroyed();
    I hit build and it builds correctly - no errors - YAY!!.
    I hit run, the phone emulator pops up. I hit launch and:
    An error pops up on the screen of the phone.
    The error below appears in the Wireless toolkit window:
    Project "HelloWorld" loaded
    Project settings saved
    Building "HelloWorld"
    Build complete
    Running with storage root DefaultColorPhone
    Unable to create MIDlet HelloWorld
    java.lang.ClassNotFoundException: HelloWorld
         at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
         at com.sun.midp
    I'm using version 1.5 of JDK - what have I not done - why won't it run.
    I keep getting Java.lang errors!!!!
    AAAGGGHHHHH!!!!!!!!!!!!!!!

  • Java Wireless Toolkit Setup Help Needed

    I am interseted in mobile application development, and I have recently tried to set up the Java Wireless toolkit 2.0 on my laptop.
    I have spent gours trying to get it to work correctly - still nothing!!
    When it's all installed, I have opened up the sample projects -- e.g. Games.
    When I hit 'Build' I am given the following error:
    Project "games" loaded
    Project settings saved
    Building "games"
    C:\WTK20\apps\games\src\example\pushpuzzle\PushPuzzle.java:145: cannot access java.lang.StringBuilder
    file java\lang\StringBuilder.class not found
    alert.setString("Could not load level " +
    ^
    com.sun.kvem.ktools.ExecutionException
    Build failed
    Can someone please tell me what to do?!?
    Is it to do with setting the classpath?? How do I do that??
    What other Java tools do I need to have prior to installing the Wireless toolkit?? JVM?? Where do I get this? How do I install it correctly and set paths correctly??
    Any help would be HUGELY appreciated as I have downloaded so much stuff at this stage I have compleely confused myself!!

    Hey.
    Right, last night I downloaded the latest version of JDK - version 1.5.
    I installed it successfully.
    So in the folder C:\ Java there are two folders: Jdk-1.5_etc and JRE-1.5_etc.
    Next I downloaded and installed the latest version of the wireless toolkit.
    It saw that I had the JDK installed at th correct folder, and it installed at C:\WTK20 - said it installed correctly.
    So, next I select create project - call it hello world.
    Then I place the following code in the src folder of the helloWorld folder:
    * Copyright 2000-2001 by Sun Microsystems, Inc.,
    * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
    * All rights reserved.
    package examples.helloworld;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HelloWorld extends MIDlet implements CommandListener {
    private Command exitCommand;
    private TextBox tb;
    public HelloWorld() {
    exitCommand = new Command("Exit", Command.EXIT, 1);
    tb = new TextBox("Hello MIDlet", "Hello, World!", 15, 0);
    tb.addCommand(exitCommand);
    tb.setCommandListener(this);
    protected void startApp() {
    Display.getDisplay(this).setCurrent(tb);
    protected void pauseApp() {}
    protected void destroyApp(boolean u) {}
    public void commandAction(Command c, Displayable d) {
    if (c == exitCommand) {
    destroyApp(false);
    notifyDestroyed();
    I hit build and it builds correctly - no errors - YAY!!.
    I hit run, the phone emulator pops up. I hit launch and:
    An error pops up on the screen of the phone.
    The error below appears in the Wireless toolkit window:
    Project "HelloWorld" loaded
    Project settings saved
    Building "HelloWorld"
    Build complete
    Running with storage root DefaultColorPhone
    Unable to create MIDlet HelloWorld
    java.lang.ClassNotFoundException: HelloWorld
         at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
         at com.sun.midp
    I'm using version 1.5 of JDK - what have I not done - why won't it run.
    I keep getting Java.lang errors!!!!
    AAAGGGHHHHH!!!!!!!!!!!!!!!

  • J2ME Wireless Toolkit jad error

    hi every1 i'm new to this j2me. i'm having the following install error:
    'the application file(.jad) for HopBoy does not appear to be the correct type'.
    i'm using j2me wireless toolkit. create the package then run via ota. i'm using apache web server. well i'm trying to simulate OTA function demonstrates how a mobile phone locates and downloads MIDlets from a remote server. thank u for your help.

    I experience the similar problem.
    But got success with some mobile models and most of them fail.
    I put the following file in the web page.
    (test.html, test.jad, test.jar)
    Sony Erisson P800, install successful when accessing http://x.x.x.x/test.html, or http://x.x.x.x/test.jar
    Nokia 7650, install successful when accessing http://x.x.x.x/test.jar
    Nokia 3530 Fail,
    Does anyone know how to install java game to Nokia 3530 through Web.

  • How to use KAWT with "Sun Java Wireless Toolkit 2.3 Beta"?

    Hi!
    Im new to developing java for mobile devices so all of this is pretty confusing for me. I started with installing suns:s "Wireless Toolkit 2.3 Beta" and it works fine but now I want to use awt classes so I started to look it up and that�s how I found out about kawt. I followed the tutorial at http://www.kawt.de/ and i was able to use it for Java Wireless Toolkit 1.0.4_02 so that it compiled fine and was run able.
    Then I tried the same thing in v 2.3 but I got a error that looked like this "Uncaught exception java/lang/NoClassDefFoundError: awtDemo: /awt/event/ActionListener: Cannot create class in system package." when i tried to run it. It compiled fine when I pressed the build button witch wouldn�t have happened if i hadn�t installed it correctly. So I�m wondering if someone knows were to find a tutorial for installing kawt for "Sun Java Wireless Toolkit 2.3 Beta" or if anyone knows what might be wrong?
    I'd welcome any help
    Thanks!

    If using the zip install of DSEE, you need to use your own java container to host DSEE. Try downloading the latest Tomcat (http://tomcat.apache.org) and deploying your dscc in it.

  • Need help with Socket prog using Java wireless toolkit

    Hi, I am not able to communicate between client (Palm emulator) and server (Java on computer) using Java Wireless toolkit.
    Can anyone please tell me a site that shows an example. I have seen a bunch of examples but they all run by importing com.sun.kjava which seems to have vanished into thin air. So I cannot run them. Someone please show me some lines of code that will send just one character from client Palm emulator to server. thanks.
    Syed

    hi,
    I hope that you already have the J2ME Toolkit and that your emulator works okay. In the toolkit you get several examples to show you how to program a MIDlet. One has to do with a HTTP client server connection. Also in the API documentation for the J2ME there is a Connector class that you used to set up this communication and in the description of this class it pretty thoroughly explains how to set up an HTTP protocol client.
    However, if you want to do some other kind of networking then you are pretty much out of luck, as the TCPIP socket protocol has not been fully implemented and is optional to the J2ME specifications, only the HTTP protocol is certain to be available. This means that mobile phone companies can add other networking functionality to their phone's java virtual machine if they feel like it. This is a bummer I know.
    I hope this helps.
    Cheers,
    Mark

  • Crash when running basic midlet using  eclipseme and sun's wireless toolkit

    I am trying to run a demo midlet using sun's wireless toolkit in the eclipseme environment and I get the following error;
    ALERT: java/lang/ClassFormatError: Bad version information.
    alongwith a stack dump.
    Any ideas as to what the problem might be?
    Thanks.

    This is just a guess:
    (1) Your applications runs up against the maximum number of lock objects, which triggers an exception. This may be caused by either (a) your application requirements or (b) failure to commit/abort transactions.
    (2) The exception is not caught at the appropriate place, or appropriate action is not taken in the exception handling, which is to deallocate XmlResults and other objects (so the underlying C++ objects may be freed) and to abort the transaction.
    (3) C++ objects the Java wrappers of which should have been deleted (call delete()) are still around when they shouldn't be, and this causes a SEGV to happen, which is what you're seeing.
    If you think the above is possible, you could boil down com.company.MyClass to a minimal example that reproduces the behaviour you're seeing and is easy for others to run at home, and then post it here.
    Michael Ludwig

  • HT5676 my macpro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help!! and what does internal error got to do with installing a printer?

    my macbook pro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help me!! and what does internal error got to do with installing a printer?

    my macbook pro (10.6.8) refused to install wireless printer (canon pixma MG4260). Whenever i tried to install, it keeps saying 'internal error number 12'. Please help me!! and what does internal error got to do with installing a printer?

  • Image problem with my palm (J2ME Wireless Toolkit)

    Hi,
    I did a basic application. I just show an image and it works perfectly with the J2ME Wireless ToolKit.
    However, when I create the package, convert it and send it on my palm, everything is ok, except the image. It won't appair.
    I get an exception that the image couldn't be found, but when I use the emulator, everything is ok !!!
    The image is in the "res" directory, like it was asked in the manual.
    I tought that everything is encoded (text file or image file) when you create the package. If it's working with the emulator, why is it not working on my palm?

    I had a same problem with my nokia 3650 in J2me the image appears but not on the phone, I think that that is a bug and fixed it this way:
    when you make a jar package, unpack package with winRAR or some archive program in some temp directory and in that directory make a res directory an put the image in it, then repack theese files again including the res directory in a new jar file. It works for me. It looks that J2ME in compiling doesn't change the path, to root but leaves the res directory.

  • Problem With Downloading Wireless Toolkit.

    I`ve problem with downloading the j2me wireless toolkit, i`ve tried to downloading it for 3 weeks but i couldn`t, so i`m searching for some mirror sites for this package and couldn`t find anything.Can You Suggest me a mirror site for Dl ing this package PLZ?

    I found that mpp sdk works well, it may not be what your looking for but Its worth looking at I think.
    http://www.mpowerplayer.com/

  • Communication Error with wireless router, Works fine with Ethernet cable.

    Video iChat is fine when my MBP and other MB's and MBP's are at my house using the Netgear 240 rangemax wireless router. I'm currently running High speed Internet via cable modem through Time Warner Cable. When I try to chat with them while they are at home, I get a communication error. I then tried to use the Ethernet cable hooked up to the cable modem to my MacBook Pro. It worked fine. I would like to use video iChat via my wireless router. I don't understand why it is not working. I think it is my router. Do I need to buy an Airport Extreme Base Station or can I still use this router. Can you possibly help me configure this Netgear router? The internet connection is fine when I use the wireless router.
    MBP 15" C2D 2.33   Mac OS X (10.4.8)   Cable Modem, Netgear RangeMax 240 WPNT834 wireless router

    I have not had very good experiences with the Netgear routers. I can't say that it is the router causing your problem, however, it might be the effective wireless bandwidth over your router. Do a speedcheck and determine the download and upload speed with wireless. Hopefully you're getting about 400Kbps up and 400Kbps down or about 1000Kbps in total.

Maybe you are looking for