Stylus support in wireless toolkit

Hello people,
I'm doin a project which involves creating a drawing pad on which a user can draw..How can i do with Sun Java Wireless Toolkit??..any classes for stylus??..or any mouse events/classes??..or any other means??
Thanx in advance

With reference to original question. It is not very clear to me from the question by what you mean by adding a device. As far as I read, the concept of adding devices to W2K is to change the display properties, font properties, etc. This can be done using the following way.
Assume your installation of w2k is at D:\WTK20
1. Go to D:\WTK20\wtklib\devices directory.
2. Create a new directory with your device name.
3. Copy DefaultColorPhone (say MyNewDevice)
4. Copy the DefaultColorPhone.properties file from DefaultColorPhone directory to your new directory and rename it to MyNewDevice.properties (This is to simplify things. Otherwise you can choose to create a totally fresh file).
5. Go through the properties and try to play with it by changing the values and openng your midlets in this new device. This way I could create a emulator that supports Indian language.
Hope this gives some pointers on how to do it. But not sure whether it answers your question. All the best.

Similar Messages

  • 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

  • Wireless toolkit in sun one studio 4 update 1 mobile edition?

    I'm starting work on a MIDP 2.0 procect that requires the 2.1 wireless toolkit for JSR-172 (web services) support. I'm currently using Sun One Studio 4 update 1Mmobile Edition with the built-in 1.04 toolkit. Is there any way for me to setup the 2.1 toolkit to work with S1ME4_1?
    I know the Early Access release of ME 5 ships with 2.1 toolkit support, but my project extends beyond the 60 day license.
    Any help would be appreciated. Thanks. :-)

    Hi,
    1. install the WTK 2.1
    2. In your project in S1ME4_1 in the Explorer
    - select Runtime -> Device Emulator Registry -> Installed Emulators
    - click right on that and choose "Add... Emulator" and enter your path to the WTK 2.1 (normally you have then a new "installed emulator" (J2ME WTK2.1)
    3. Open the "Default Emulator" and change it by clicking right on the one mentioned.
    4. add the midpapi20.jar from the lib directory of WTK2.1 to the classpath (i.e. by mounting)
    Hope it works.
    Kay

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

  • J2ME Wireless Toolkit 2.5

    Hi all,
    I would like to ask if this new veresion (J2ME Wireless toolkit 2.5) supports ArrayList.
    I have developed a program with ArrayList , is it possible to run it in this new version without problems.
    Thanks

    New version of WTK 2.5 supports CLDC stack. Unfortunately the ArrayList class is not present in the spec for this stack, so WTK 2.5 will not be able to run your application. (Like all other CLDC implementations) But you can try the CDC emulator "Sun Java Toolkit 1.0 for CDC" at http://java.sun.com/javame/downloads/index.jsp
    (CDC stack has the class ArrayList)

  • Question about java 5.0 & j2me & wireless toolkit

    Hi,
    I maybe have a dumb question, but to me it's not totally clear. I am currently developing an application (for J2ME and J2SE) which uses RSA encryption. So I found out that before Java 5.0 RSA encryption wasn't supported, but starting from Java 5.0 it is. So my question now is. If I use the RSA encryption from Java 5.0, can I still use it in my cell phone? And which Java version runs in my cell phone?
    It not clear to me, but maybe someone will be so nice to respond...
    Can my/any cellphone run Java 5.0 code? So what if I use the mentioned RSA-cipher... or generics...enumerations... On what does it depend whether I can use it for my cell phone or not?
    Does it just depend on the compiler? the JVM on my phone? or even the wireless toolkit?
    Thank you very much in advance.
    Sincerely.

    bump...
    anyone?

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

  • Wireless toolkit - add implementation of JSR

    I want to run MIDlets (in the emulator) using a JSR not currently included in the Sun Java Wireless Toolkit.
    I can do the implementation myself and package it as a JAR-file.
    The problem is that the code is in the javax.-package so I can not let code go into my MIDlet's JAR-file. What I would like is if it's possible to drop the JAR-file in the WTK's lib-folder and then the emulator would use the classes just if they were part of the platform. Unfortunately this does not seem to work.
    Does anyone know if this should be possible?
    Do I have to alter some configurations file to tell WTK to use the JAR-file?
    BR,
    Markus

    >
    I doubt that this is possible. Besides jar with JSR code, I think that other code is needed in order to integrate it into emulator.
    What JSR do you want to use? What version WTK do you use - 2.5.2? Did you look into "next generation WTK" - Java ME SDK?
    Java ME SDK supports about 20 JSRs, click here for detailed description. Just as renard1 I am thinking of JSR-257.
    >
    I'm currently using 2.5.2 (integrated with NetBeans IDE) but EA 3.0 looks promising. I will look into that more when it comes to Linux...
    Sure if I would implement everything in the JSR and also have the possibility to attach cards and so on it would require code integrated into the emulator, but I don't need that functionality right now. What I have is a jar-file with pure Java ME code that I want the emulator to consider as part of the platform.
    Is there any special reasons for having which JAR-files to be included hard-coded in the emulator source code? I think that sounds very inflexible.
    >
    I think that I can modify and rebiuld the sources but I hope that there is an easier way. Don't you have ?'
    >
    Is the source code for WTK or EA available somewhere?
    >
    Besides WTK, did you consider testing your NFC MIDlet with other emulators such as for example JSR 257 RI SDK or Nokia SDK for Payment and Ticketing ? If needed, find more details on these emulators at links below:
    - JSR 257 RI SDK FAQ
    - Nokia SDK for Payment and Ticketing FAQI couldn't find if JSR 257 RI SDK (still) was available for download anywhere.
    >
    I couldn't find that JSR 257 Reference Implementation SDK anywhere for download. Have you?
    Currently I'm using Nokia 6131 NFC SDK (http://www.forum.nokia.com/devices/6131_NFC) but I would rather not be limited to that SDK/emulator which among other is Windows-only and has no profiler.

  • Sun Wireless Toolkit - ktools.properties?

    Hi friends,
    Does somebody know how can I change the ktools.properties (placed on C:\WTK21\wtklib\Windows) in order to make the Wireless Toolkit find all the classes it needs in a third party jar file? Actually I don't know if this is the file I need to change.
    Let me explain. Siemens devices put all CLDC, MIDP1.0 and proprietary classes in a single JAR file called api.jar. I would like to know how can I set the Wireless Toolkit to use this file instead of the files midpapi10.jar and cldcapi10.jar. In prior versions of the WTK all the classes used in the compilation process were available in a single file calle midpapi.zip and I could rename the Siemens api.jar file to midpapi.zip and everything was ok, but now they are split in configuration and profile jar files. What can I do?
    Thanks in advance fellows
    Cleverson

    I tried to deal with it by ktools.properties but it didn't work. On some tech details about WTK I read that it simply doesn't support proprietary apis.
    However, I found a way to get around it. I put api.jar (siemens) in the lib dir. When I create the package, this api is inserted in the midlet.jar . All is left to do is delete the com/* directory from the jar file. Then the program can be run on the phone.
    It's a bit messy but I set up macros for these tasks and everything works quite smoothly. And I don't like all these monstrous IDEs so I prefer to work with plain WTK.

  • Adding devices in Wireless toolkit

    Hi,
    I'd like to know how to add my Sony Ericsson p800 to the device list of my wireless toolkit. I presume I'm ok with using the default color device put have seen in some ericsson java developers guide that it can be done. Just don't know how.
    Cheers for any help

    With reference to original question. It is not very clear to me from the question by what you mean by adding a device. As far as I read, the concept of adding devices to W2K is to change the display properties, font properties, etc. This can be done using the following way.
    Assume your installation of w2k is at D:\WTK20
    1. Go to D:\WTK20\wtklib\devices directory.
    2. Create a new directory with your device name.
    3. Copy DefaultColorPhone (say MyNewDevice)
    4. Copy the DefaultColorPhone.properties file from DefaultColorPhone directory to your new directory and rename it to MyNewDevice.properties (This is to simplify things. Otherwise you can choose to create a totally fresh file).
    5. Go through the properties and try to play with it by changing the values and openng your midlets in this new device. This way I could create a emulator that supports Indian language.
    Hope this gives some pointers on how to do it. But not sure whether it answers your question. All the best.

  • 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]?

  • Sun Java Wireless Toolkit 2.5.2 for CLDC released!

    We've released the WTK 2.5.2 (Windows, Ubuntu Linux, and multilingual versions) with improved multiuser environment support. We've heard and listened to user's comments and have recompiled our WTK for Ubuntu linux based on Glibc 2.3 libraries to provide support for other distributions of Linux. Keep in mind, the WTK has been tested on Ubuntu Linux version 6.x.
    Download the latest version today:
    http://java.sun.com/products/sjwtoolkit/download.html
    For feedback on the Wireless Toolkit, please click here:
    http://developers.sun.com/contact/feedback.jsp?&category=j2me&mailsubject=Sun%20Java%20Wireless%20Toolkit%20for%20CLDC
    Thanks!

    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

  • 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 :)

  • Installing Wireless Toolkit 1.0.3 on Suse 8.0 problem

    Hello,
    I try to install Wireless Toolkit 1.0.3 on Suse 8.0. I always get the message:
    uudecode: command not found Failed to extract JavaVersionTester class.
    Walking through all Suse packages didn't help. What could be the problem and how could I solve it?
    Thanks.

    solved it! Suse 8 doesn't install sharutil packages

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

Maybe you are looking for

  • XSLT and XML - Splitting out address data for a single XML item?

    Hi, I am currently having to change my XSLT code for processing XML feeds from the NHS because the technolgy has been moved from SOAP-based to RESTful (both of which mean very little to me!).  While most of the XML feeds display correctly I have been

  • Plz help! no more preview

    Hi guys I recently relocate tons of picture to order my library....and now i found out a very big issue! almost 30% of my pics (radomly) have no more preview in the browser (see only a dotted white frame) and when i use full screen mode i get a full

  • Triggering the Self-Registration of the Adapter Engine ???

    Hi,    We have a central SLD. Also we have the SLD of XI.    When coming to the post configuration step of "Triggering the Self-Registration of the Adapter Engine" it is said to                Restart the application <b>com.sap.aii.af.cpa.app</b> to

  • VMWare Fusion support for Windows 7?

    Does anyone know when VMWare Fusion will come out with an update that supports Windows 7? I've heard that it can/does work, you just have to choose "Windows Vista" from the list of OSs and make a few tweaks. Still, I don't like using anything in any

  • Unknown user in windows service

    Hi all, I'm running two Mac OS X 10.3.9 servers with Windows service among other things, and I kept seeing this unknown user connected to my server. I've set the Windows service to NOT allow guest access and none of my share points allow guest access