Tuesday, December 25, 2007

Clicking on jnlp does not open java app


Problem:

By default, Microsoft's IIS mime extensions do not recognize .jnlp files. So clicking on jnlp links on a web page hosted by IIS will simply open a xml document, as best.

Solution:
In the container of the website hosting the .jnlp files, add a mime type/extension as follows.
extension: .jnlp
content type (mime): application/x-java-jnlp-file

2 comments:

Krisna said...

Hi, what about if i want to do that but i host to webhosting services?

jax said...

Hi, i believe it depends on what services your web-hosting company provides.

The easiest and foolproof way is to write to them and explain your requirements. I'm sure they will listen to the requests of a paying customer.

Alternatively, you could setup your own hosting services. There are available cheap and some even free web server solutions on the web.