Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hello World MIDlet test

 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
David Price
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic