File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes OTA download problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "OTA download problem" Watch "OTA download problem" New topic

OTA download problem

Jorma Ikonen
Ranch Hand

Joined: Sep 17, 2001
Posts: 49
I'm newbie with J2ME (started yesterday) and wondering why I can't download my Test-midlet into the OTA emulator. I'm able to run this midlet on emulator, but downloading from Tomcat-server fails even everything seems to be ok. Anyway, OTA seems to find Tomcat, but an error occurs before midlet starts (says: "Can't find Midlet suite").
Tomcat's web.xml has needed MIME-types and Jad-file includes http-URL (http://localhost/Test.jar) to Jar-file.
OTA emulator asks URL to launch the application and I assume it should be ok if I type there "http://localhost/Test.jad", but now I'm wondering that should I, instead of previous, create some html/wml-file and crete a link of "Test.jad" into it? :roll:
Jorma Ikonen
Ranch Hand

Joined: Sep 17, 2001
Posts: 49
I solved the problem. Obviously OTA Emulator (phone) do not understand straight link to Jad-file and a link into it on WML-file (by David Price) is must:
<?xml version="1.0"?>
<p><i>MIDP 1.0 MIDlets:</i></p>
<p align="center"><a href="http://localhost/Test.jad">WML-link to test</a></p>
Thanks anyway,
subject: OTA download problem
Similar Threads
WTK Emulator can't OTA from remote web server
Download problem
Trouble running "Kicking Butt" PushyMIDlet example
problem with OTA download Midlet
Sun emulator can't OTA my app from a remote web server