Skip to main content

Midlet install error

2 replies [Last post]
Joined: 2006-12-16


I have built the phoneME feature software MR1 on a Windows 2000 machine with Visual Studio 6.0 and Cyg4ME. I have enabled JSR 75 & JSR 135. I am trying to check the build by trying to use File Connection API. I have built PDAPDemo.jad & jar (this is an example project built using Sun Java Wireless Toolkit 2.3 - which uses the File Connection API). I hosted them on an Apache HTTP server. When I run "installMidlet.bat http://localhost/PDAPDemo.jad", I get the following message in the phone emulator.

"Install Error - The application file (.jad) for the Application does not appear to be of the correct type. Contact the application provider for more information".

Here are the contents of PDAPDemo.jad:

MIDlet-1: FileBrowser, , example.fc.FileBrowser
MIDlet-2: JSR75 PIM APIs, PDAPDemo.png, example.pim.PIMDemo
MIDlet-Jar-Size: 21156
MIDlet-Jar-URL: http://localhost/PDAPDemo.jar
MIDlet-Name: PDAPDemo
MIDlet-Vendor: Unknown
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.0

I have also tried another simple Midlet helloworld, and I get the same error when I try to install the Midlet.

Here are the contents of helloworld.jad:

MIDlet-1: HelloWorld, HelloWorld.png, example.helloworld.HelloWorld
MIDlet-Name: HelloWorld
MIDlet-Vendor: Unknown
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-1.0
MIDlet-Jar-URL: http://localhost/helloworld.jar
MIDlet-Jar-Size: 9588

Can you please help me in identifying the problem?

Warm regards,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2005-09-22

I guess you have not conifured your apache MIME types to recognize j2me apps.
You will need to update httpd.conf with following entries.

AddType text/ .jad
AddType application/java-archive .jar


Joined: 2006-12-16


Thanks. It works now.