J2ME Toolkit

I have installed the J2ME toolkit, downloaded from java.sun.com, on a Linux machine. When I run a sample program that comes with the J2ME toolkit, the emulator is too small (about a square inch). I couldn't find any option in the properties file to change the image size of the phone. This problem doesn't come up on a Windows machine. Please guide.
Thanks

Hi,
Add a "scale" entry to the <device>.properties file :
scale = <magnification_factor> (an int, you can't use a float)
for more detail, see {wtk_dir}/docs/BasicCastomizationGuide.pdf
Regards

Similar Messages

  • How to use third party APIs with Sun J2ME Toolkit

    I've installed Sun J2ME Toolkit 2.1. If I intend to use other third party APIs with my existing toolkit, how do I do that. I can manage to get the jar file of the associated API classes, but how to integrate the same with the toolkit. Thanks in advance to all who support.

    if I remember right, it is enough, if you put the .jar of the api in the lib/ directory of your project (<WTK>/apps/<yourProject>/lib/ )
    hth
    Kay

  • J2ME toolkit (midlet suit debugging problem)

    Hi,
    I installed the SUN's J2ME wireless toolkit and made all the necessary configurations. I can run my midlet suit using any emulator. I can deploy my project into a jad file.
    However, I cannot debug my project.
    When I try to debug using any emulator I get:
    "KVM not ready" message and I'm stuck.
    Did anybody experience this issue before?
    Thanks

    It probably comes from the sequence you use to start debugger and debuggee. A MIDlet Suite will necessary be remote debugged. Please see the viewlets at http://otn.oracle.com/products/jdev/htdocs/partners/addins/exchange/j2me/content.html, scroll at the bottom of the page, and click "Dbug the MIDlet Suite".
    Please feel free to ping me directly at [email protected] if you need more info.

  • J2me toolkit in linux

    hi to all,
    these are the excerpts that I got from the j2me FAQ page <http://java.sun.com/products/j2mewtoolkit/FAQ.html>
    <snip>
    Q. What are the system requirements for the J2ME Wireless Toolkit?
    A. The following environment is required in order to install and run the J2ME Wireless Toolkit:
    <snip>
    SolarisTM Operating Environment
    Required Software
    Java 2 Standard Edition, version 1.3 or later, downloadable from http://java.sun.com/j2se/1.3/download-solaris.html
    Solaris OS patches required by the JDK you are using. These
    patches are available from the JDK for the Solaris operating environment download page.
    Optional Software
    Forte for Java software, version 2.0/3.0 (downloadable from http://www.sun.com/forte/ffj/)
    Linux Operating System
    Required Software
    Java 2 Standard Edition, version 1.3 or later, downloadable from http://java.sun.com/j2se/1.3/download-linux.html
    Optional Software
    Forte for Java software, version 2.0/3.0 (downloadable from http://www.sun.com/forte/ffj/)
    Required Hardware
    30 Mbytes disk (140 Mbytes with Forte for Java software)
    64 Mbytes system RAM (128 Mbytes for Forte for Java software)
    166 MHz CPU (300 MHz for Forte for Java software)
    Important Notes on System Requirements for the UNIX� Platform:
    The version for the Solaris operating environment was tested only on English versions of Solaris 2.7 and Solaris 8. The Linux version was tested only on English Red Hat Linux 7.1, kernel 2.4.2-2. If you have a problem running JDK 1.3 on these software versions, you may have to define an environment variable LD_ASSUME_KERNEL=2.2.5.
    Q. What about Microsoft Windows 95?
    A. Microsoft Windows 95 is not a supported platform.
    Q. Is the J2ME Wireless Toolkit supported on Linux or the SolarisTM operating environment?
    A. We provide executables for both of these platforms, but they are not officially supported.
    ========
    so where does the toolkits for Solaris and Linux reside? I cant seem to find it...
    thanks for reading this....

    disregard this post, its in the early access part of the site.

  • Install j2me toolkit failed on linux(rh8)

    i install j2me on linux,but failed.
    the error message is "[undecode] command not found. Failed to extract JavaVersionTester class"
    how could i do?
    thx!!!

    Hello,
    I got the same error on my Suse Linux 9 based system. Where can be the problem? Did anyone have/had the sam problem and solution?
    Do you agree to the above license terms? [yes or no] yes
    ./j2me_wireless_toolkit-1_0_4_01-bin-linuxi386.bin: line 270: uudecode: command not found
    Failed to extract JavaVersionTester class

  • J2me toolkit emulators

    hai folks.could u plz tell me whether it is possible to open a web page on an emulator.If so how?

    Hi
    u could download midp1.0.3 and refer to more info.
    MIDlet Installation on a Web Server
    Place the descriptor file, the Jar file, and the OTA listing in a web server visible directory. This will allow your application to be downloadable over the network.
    The web server must be configured to deliver a specific MIME type for the descriptor and jar files.
    If using Apache, add the following two lines to the httpd.conf file:
    AddType text/vnd.sun.j2me.app-descriptor .jad
    AddType application/java-archive .jar
    Running the MIDlet from the command line
    The following command demonstrates how to invoke the midp executable with a remote URL. The -transient argument causes the descriptor file to be fetched and the Jar file referenced in the descriptor file to be temporarily installed and started. When the application is destroyed, the temporarily installed application is removed. bin/midp -transient http://<host>/<path>/hello.jad
    Installing and running the MIDlet using the GUI
    The following demonstrates how to invoke the midp executable to emulate how a user will provision and run an application over the air and run it. The presence of no arguments causes the graphical application manager to be displayed. The graphical manager can install, list, launch, update, and remove applications. bin/midp
    When the MIDP RI GUI pops up:
    Choose Install.
    Enter the URL of the hello.html and choose Go.
    Select "Hello World" from the list and choose Install.
    When the list of suites is showing select "HelloWorld" from the list and choose Launch.
    BRS
    john

  • Running Toolkit - Cannot connect socket to port

    Hi,
    Can anybody help me to try and execute any program with the J2ME Toolkit. After loading the jad file from the samples I get the following error. This happens irrespective of the application I try and the applications do run on the Nokia toolkit I have installed. The error is as follows:
    Running with storage root DefaultColorPhone
    Cannot connect socket to port 3279
    Windows error code 10061
    Cannot open socket for LIME events on port 3279
    I am running Windows XP Pro, JSDK1.4.2.
    Thanks for your help.
    Sean Mac

    when i run the j2me toolkit 21 get the following message and the device disapears after a second...
    cannot connect socket to port 1047
    Windows error code 10061
    cannot open socket for LIME events on port 1047
    plzzz reply

  • J2ME pre-requisites, URGENT!!!

    Hi people!!!
    How are you doing? Are you ok? I wanna know what do I need to know and what software do I need to have to start learning J2ME?
    Do I get to learn it with the JBuilder 7? And do I need to know JDBC, JSP, XML and Servlet programming?
    Because I wanna start programming for these things...
    Thanx...

    Hi!
    You only need to learn the java language. Then you download the J2ME toolkit from java.sun.com
    It includes some documentation and examples to start you with. You can also go to the official homepage of the J2ME. I also recommend downloading the sun one studio me for your IDE.

  • Connecting a j2me app with tomcat

    I have created a J2ME application which connects to a web-server (servlets) and returns some data!! I dit it with the J2ME toolkit and tomcat and now i want to test in a real phone! So i got Siemens SL45i. How can i establish a connection with tomcat in my pc ? Can I somehow connect my phone and my pc with a cable or something?
    thanks in advance!
    Sarantos

    Thanks for your reply but i am not sure that i understood ! Do you suggest to connect another mobile phone to my pc and use it like a wap gateway or something and then call it from my j2me phone the same way i call my wap provider?
    Why not connecting my phone directly to the pc?
    thank you very much!!
    Sorry if i am saying something completely wrong !!!

  • 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

  • Problems downloading j2me

    Hi,
    I have just downloaded j2se 1.4.1_02 and studio one mobile. I am now trying to download the j2me toolkit, but an error message is consistenly printed out midway into the installation. The message says that "cannot find main class. Program will exit".
    Please help

    hard to guess what's wrong. are you sure downloads went fine? i suggest using dedicated download managers instead of built in mozilla/ie/netscape download mechanism. check file sizes and be sure they're correct.

  • J2ME plugin or IDE

    Hi.
    Looking at doing a small proof of concept J2ME application.
    Is there a decent eclipse plugin or IDE for development? I dl'd the J2ME toolkit, but was hoping for something better to do development on.
    Shop I'm currently at is running WSAD, so would like avoid installing JBuilder if possible.
    Any input is appreciated!
    Thanks!

    Eclipse (www.eclipse.org) + EclipseME plugin? (www.eclipseme.org)
    My fav anyway....

  • Uninstall j2me

    Dear All,
    I have install j2me 2.2 on my computer, after installation, i would like to uninstall it from my computer. i choose to uninstall the j2me toolkit from add/remove software in the conrtol panel, but after i choose to uninstall the software and it completed, the j2me toolkit is still in my computer??
    Any ideas?? thanks in advance.
    Jeffery

    Hi.
    One solution is to replace the MIDlet with a new one with no fuctionality by using the
    javax.microedition.midlet.MIDlet.platformRequest(String url) method.
    The user must allow the installation of the new MIDlet, so you can't do it without the users knowledge.
    -Henrik

  • 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

  • Help! New to J2ME CDC

    Hi, I need some help with CDC. I am wondering if there is a way to run CDC program in the J2ME Toolkit emulator?
    Here's some extra information, don't know if its any use. I am running Windows 2000 with CDC Personal Profile. I compiled my code using "javac -bootclasspath C:\WTK21\j2me-pp1.0\btclasses.zip *.java". It works fine on Windows 2000 when I run it using J2SE. When I run it in the J2ME Toolkit it says java.lang is not defined.
    I just want to say that I'm really lost. Thanks.
    Derek
    http://users.wpi.edu/~aram/mqp/

    Sorry Derek, J2ME Toolkit emulator is made to run CLDC apps.
    I'm also trying to gather all information possible to begin to work with J2ME CDC.
    If i'm not wrong there's something like Personal Profile Emulator that you could use.
    Lots of luck and kind regards
    Jose Luis
    >
    Hi, I need some help with CDC. I am wondering if
    there is a way to run CDC program in the J2ME Toolkit
    emulator?
    Here's some extra information, don't know if its any
    use. I am running Windows 2000 with CDC Personal
    Profile. I compiled my code using "javac
    -bootclasspath C:\WTK21\j2me-pp1.0\btclasses.zip
    *.java". It works fine on Windows 2000 when I run it
    using J2SE. When I run it in the J2ME Toolkit it says
    java.lang is not defined.
    I just want to say that I'm really lost. Thanks.
    Derek
    http://users.wpi.edu/~aram/mqp/

Maybe you are looking for