• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Hello World MIDlet test

 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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'.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic