GeeCON Prague 2014*
The moose likes Java Micro Edition and the fly likes Hello World MIDlet test Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Hello World MIDlet test" Watch "Hello World MIDlet test" New topic
Author

Hello World MIDlet test

Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I'm curious to know how well this OTA installation works for different platforms.
I've placed a simple Hello World MIDlet on the JavaRanch test server.
The web page with the jad installation link is at http://test.javaranch.com/j2me/HelloWorld/install.html
I'm able to download, install, and run it on my Nokia 3650. T-Mobile is providing my services. I'm currently subscribed to their free trial t-zones service.
Does it work for you?
This app was created following Sun's introductory MIDlet tutorial at http://wireless.java.sun.com/midp/articles/wtoolkit/
install.html

HelloMIDlet.java

HelloSuite.jad

[ September 01, 2003: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
David Price
Ranch Hand

Joined: Jan 22, 2003
Posts: 93
That won't work for many current phones, since they don't support HTML but instead WML. This applies e.g. to my Nokia 7210.
I tried downloading the JAD directly, and got 'File Format Unknown'. Have you set up your mime types correctly?
There are solutions to both these problems in my answer in the recent thread 'problem with OTA download Midlet'.
Ankit Gupta
Greenhorn

Joined: Apr 13, 2012
Posts: 1
Hi I tested your jar file and it worked properly in my mobile. I tried to recompile HelloMIDlet.java using the following commands but that jar file installs on my mobile but does not runs.
Everytime the application terminates as soon as it is launched. Looks like there is some problem with my compilation and preverification.

Can you please help me with the same?

javac -bootclasspath C:\Java_ME_platform_SDK_3.0.5\lib\cldc_1.0.jar;C:\Java_ME_platform_SDK_3.0.5\lib\midp_1.0.jar HelloMIDlet.java
Files Generated: HelloWorld.class

C:\Java_ME_platform_SDK_3.0.5\bin\preverify.exe -classpath C:\Java_ME_platform_SDK_3.0.5\lib\cldc_1.0.jar;C:\Java_ME_platform_SDK_3.0.5\lib\midp_1.0.jar HelloMIDlet
Files Generated: output\HelloWorld.class
 
GeeCON Prague 2014
 
subject: Hello World MIDlet test