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!!!!!!!!!!!!!!!

Similar Messages

  • WRT54G Wireless Router Setup Help Needed

    Hi,
    I have a WRT 54G router I want to set up on my network.
    What I want to be able to do is have the router allow wireless laptops to connect via wireless, but I want the router to assign the IP automatically through DHCP. Is this possible?
    My Network information is as follows:
    Router would be assigned IP 192.168.72.10
    Network information for Office where this is going:
    Subnet: 255.255.255.0
    Default Gateway: 192.168.72.1
    Primary DNS: 192.168.1.59
    Secondary DNS: 192.168.1.52
    any help would be appreciated...

    First of all, let me say that, assuming you have a Linksys router in the main office, that there is no reason why that router could not use both fixed LAN IP addresses, and have its DHCP server turned on and give out DHCP addresses also.  So, it seems like you could setup the system in the manner I mentioned in my previous post.   Unless, for some reason, you prefer not to do it this way.
    If you really want to set it up with the WRT54G giving out DHCP addresses, then read on:
    If you want to use the DHCP server in the WRT54G, you will need to place it on a separate subnet.
    I'm still a bit confused by what you have written.  You said that the WRT54G router "would be assigned IP 192.168.72.10".  And later you said that my assumption was correct that you set the "Local IP Address" to this value.   However, if you want to use the DHCP server in the WRT54G, this will not work, because to use the DHCP server, the WRT54G needs to be on a separate subnet.
    Instead, in the WRT54G, you would need to set the "Internet Connection Type" to "Static", then give the WRT54G the WAN address (not local IP address) of 192.168.72.10.   (You will also need to specify the subnet mask 255.255.255.0 , default gateway 192.168.72.1 , and DNS (proxy) server 192.168.72.1 )  You would need to reset the WRT54G's  "Local IP address" to a subnet that is not used elsewhere in your network.  Since you apparently already use 192.168.1.x  and  192.168.72.x  subnets, you will need to pick something else, perhaps 192.168.54.1 for the "local IP address" of the WRT54G.
    In this type of setup, you would leave the DHCP server of the WRT54G enabled, and wire a LAN port from the office router to the Internet port of the WRT54G.
    In this case, the WRT54G is in control of all your router settings, including port forwarding, DHCP server, and wireless settings.  Also note that if you need to forward a port, you will need to forward the port through your entire network, not just the WRT54G.
    One additional warning.  I have not personally used a "3 subnet" system with Linksys routers.  So I am not certain that all your DNS addresses will flow through the system properly.  If it doesn't work, you may need to enter some of you actual Internet based DNS addresses (or perhaps your Primary and Secondary 192.168.1.59 and .52 DNS servers) into the WRT54G router by hand, rather than using the built in Linksys DNS proxy at 192.168.72.1 
    Hope this helps.
    Message Edited by toomanydonuts on 12-04-2007 04:34 PM

  • 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

  • Using palm os emulator through java wireless toolkit!!.....pls help

    I have palm os emulator 3.5 installed.I am trying to integrate it wid d java wireless toolkit 2.2,in addition to d default devices provided by d toolkit.But i hav failed to integrate pose in jwtk.
    i am running midp2.0 and cldc1.1.
    Also i have downloaded d rom files required by d emulator.
    Pls anyone help me!!
    How can i use palm os emulator through java wireless toolkit?
    thanking you
    shivam sahai

    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

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

  • Is MIDP 2.0 and CLDC  inluded in Sun Java Wireless Toolkit 2.5 for CLDC?

    I downloaded the "Sun Java Wireless Toolkit 2.5 for CLDC" and "Sun Java Toolkit 1.0 for CDC" and I have JDK 6.
    do I need to download anything else or is this all I need to make applications for cdc and cldc devices??
    please help.
    thank you.

    Most devices used today support MIDP 2.0, but not all of them support CLDC 1.1. If you can do without floats, it's better to restrict yourself to CLDC 1.0 & MIDP 2.0. Devices which only support MIDP 1.0 aren't suitable for today's game development anyway (performance, resolution...) so personally I'd suggest not bothering with them if you don't have to.
    Here are some lists you can use to help you decide what to use, based on how many devices you want to target:
    http://www.j2mepolish.org/devices/platform.html
    These lists aren't complete, so please let me know if you find better ones.

  • Java wireless toolkit beta 2.5

    i have been having problems my application in a palmOne tungsten E2.so i thought may be somethin is wrong with my code, i tried installing one of the demos that came with java wireless toolkit 2.5 beta, and it have the same error.The pda cnt seem to install applications created by the toolkit, anyone know why?pls help, its urgent.
    Yusra

    have u copied soure files to src folder
    and defined midlet and it's class under seetings tab?

  • City guide at sun java wireless toolkit

    hi
    has anybody tried to launch city guide-apps(example from sun java wireless toolkit 2.3) on real device?
    i have motorola a1000 with integrated agps-modul and the example doesn�t work.
    can anybody help me?

    the problem is that a1000 doesn�t support cldc 1.1 so i had to change the example a little bit working without float arithmetic. The result is: the screen simply freezes. I thought the condition of supporting locationAPI is at least MIDP2.0 AND cldc 1.1.
    is there any special example for motorola using locationAPI?
    i think the problem is that a1000 doesn�t really support locationAPI(jsr179)
    may be it uses propery API�s (like com.motorola.location or sth like that)
    writing
    System.getProperty("microedition.location.version")i�ll get null. it�s sure
    so is there any way to use j2me for programming simple example like:
    i am here [lattitude, longitute]?

  • Availability of Java Wireless Toolkit (J2ME) for linux

    Hi, Could anyone tell me when will be available the Java wireless toolkit for Linux again ?
    According to download page is offline since March 20
    Sun Java Wireless Toolkit for CLDC 2.5.2 ML
    - March 20, 2012 - This download is being updated and will be made available again shortly, please check back regularly for it's availability.
    Is there any other way to download the Linux API for mobility development ?
    Thanks in advance.

    The link is back up.

  • POSE x Java Wireless Toolkit

    Hi,
    Could anybody teach me how to set the POSE in the J2ME Wireless Toolkit?
    When I click on Preferences of 'j2me wireless toolkit 1.0.4_02' it doesn't appear.
    thanx,
    Rodrigo

    The answer is:
    download java wireless toolkit 1.0.3:
    http://java.sun.com/products/sjwtoolkit/10301download.html
    Rodrigo

  • Reminder: Online chat, June 14: What's New in the Sun Java Wireless Toolkit

    Got a question about the Sun Java Wireless Toolkit (formerly known at the J2ME Wireless Toolkit)? Want to learn what's new and cool in the Sun Java Wireless Toolkit?
    (One thing new is that the Sun Java Wireless Toolkit 2.3 beta has been recently released.) Then join this chat with Ariel Levin, lead engineer for the Toolkit, writer Jonathan Knudsen, who's written a lot about the Toolkit, and product marketing manager E-ming Saung. They'll answer your questions on Tuesday, June 14, at 9:00 A.M. PDT (12:00 noon EDT/16:00 UTC).
    To join the chat, go to http://java.sun.com/developer/community/chat/index.html on June 14 and click on the "Join" link for the session.

    How about a link to a document for those of us who (a) don't want to spend a whole hour on the issue (b) don't want to do it at that particular time (c) both?

  • Java ME: Sun Java Wireless Toolkit not available anymore?

    Hey everyone,
    Does anyone know whats going on here? http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javame-419430.html
    Says it's been updated and will be available shortly - except it looks like it's been like that since March 20th (?)
    I'm trying to get started on a Java ME project that was dumped on me so this is just perfect timing for me.
    Does anyone know where I could get a trusted version of the Java wireless toolkit outside of Oracle's site? Googling it gives me some dodgy looking sites which I'm not too keen on trusting.
    TIA
    Jay
    Edited by: 927609 on Apr 14, 2012 12:46 AM

    Try google: [url http://www.google.com/search?q=site%3Aforum%2Ejava%2Esun%2Ecom+communications+api+win32]site:forum.java.sun.com communications api win32. One of the replies in [url /thread.jspa?threadID=684314]second link seems to have the answer.

  • Sun Java Wireless Toolkit 2.5.1 for CLDC - now available with Linux support

    Sun is proud to announce the release of Sun Java Wireless Toolkit 2.5.1 for CLDC. It includes some minor implementation bug fixes, support for hardware USB tokens for midlet signing, and support on Ubuntu linux is provided.
    Download from here:
    http://java.sun.com/products/sjwtoolkit/download-2_5_1.html

    Hi,
    Yes, we are working on making a linux release available, but we don't have a specific date as of yet. We'll provide updates as soon as we have a better idea.
    Thanks,
    E-ming

  • Java.awt.Toolkit - Coldfusion - HELP

    Greetings.
    I am having a hard time with the following code:
    <cfobject action="create" type="java" class="java.awt.Toolkit" name="fileObj">
    <cfscript>
    img = fileObj.getDefaultToolkit().getImage("images/products/39321.jpg");
    width = img.getwidth();
    height = img.getheight();
    </cfscript>
    <cfoutput>#height#</cfoutput>
    I keep getting the following error:
    java.lang.NoClassDefFoundError
    My version of Java is 1.4.2. I'm running Redhat Linux 4.0. Coldfusion MX 6.1.
    I know this isn't a Coldfusion forum, but I really need some help here.
    I'm new to Java technologies, so any help will be greatly appreciated.

    can ColdFusion load Java objects?
    Presuming that it can, then ColdFusion probably needs some configuration to tell it the Java directory or where the class files are (JavaHome/jre/lib/rt.jar)

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

Maybe you are looking for

  • BAPI_GOODSMVT_CREATE - Error Storage location not supported...

    Dear All I am creating the material movement documetn 561 (MB1C) using BAPI_GOODSMVT_CREATE. Howeever, the BAPI returns me the error saying Storage location not supported.  What is this about.  Can someone give me hint I searched the forum and not ab

  • Ios6.0.1 = Problem with office network desktop computers

    Hi, We have a few iPhones connected onto our office computer network via a WIFI router. While those iPhones were running IOS 5, we had no issues. Now, since IOS 6 - and even IOS 6.0.1 is running on those iPhones, I have 2 iPhones causing network issu

  • How do I report abuse on FaceTime?

    My daughter received repeated messages from the boyfriend of a 'friend' telling her to commit suicide and hurry up about it.  As my daughter has a history f self harm and suicide attempt as a result of mental ill health due to sexual assault when she

  • I have photoshop elements 11 and does not launch.  any help please?

    It was working fine and suddenly stopped launching.  Thanks

  • Sun Directory Server Resource Kit

    Hi All, I have downloaded the DSRK 5.2 for Sun Directory Server 5.2. However, when I try to install the same, i receive the following error: # java DSRK.class Exception in thread "main" java.lang.NoClassDefFoundError: DSRK/class can somebody please e