Deploying J2ME Apps On Apache: Gotchas


Posted

in


I was running through the Wireless Toolkit demo this afternoon and ran into a little problem while trying to run the app with Over The Air (OTA) from an Apache web server:

OTA Error Code (37) - The server did not hava a resource with the correct type (code 406) or the JAD downloaded has the wrong media type. [text/plain]

Of course, the solution is to add a few lines to an .htaccess file in the deployment directory:

addtype application/java-archive jar
addtype text/vnd.sun.j2me.app-descriptor jad

Now the demo works fine.  I can download it to the emulator and run it.  Lots of fun!