When I was studying in the university (more than 10 years ago), I learn how to build and embed Java Applets on web pages using Java 1.0 (after that Java 1.2), the functionality is quite limited since there’s no default 3D support in Java yet. Compared to Flash (then Flash 3.0 during that time), Java Applet is more suitable for math and scientific application, generating graphs and kaleidoscope base on mathematical formula, and everything.
Heck, Netscape Navigator still rules the day during that time. But what about now? With the technology explosion, does anyone here still use Java Applets?
Mobile application developers may have realize that one of the best (and recommended) way to distribute their JavaME/J2ME application is by hosting it on a website. This makes it easier for potential users to navigate and download the .jad or .jar files from their phone browsers and to execute it directly.
However, some web servers are not configured to handle .jar / .jad file requests, eventually leading to failed install response received by the mobile users.
To remedy this, .jad / .jar files need to be associated with the correct MIME type. In Apache, you can do this by creating ‘.htaccess’ file in your web directory, and inserting these lines :
AddType text/vnd.sun.j2me.app-descriptor .jad
AddType application/java-archive .jar
Afterwards, safe the file. The web server should behave accordingly when requests are made to either of these files. For other web servers, please refer to their respective manual or online-help on how to change document MIME type.