Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting MIME type in IIS 4 & 5

843802Jul 27 2001 — edited Aug 2 2001
Well I am very impressed with this Web Start technology but it was a little slow downloading via sun's site.

I set about trying to set it up on my company Intranet server before I demonstrated to my IT director.

I saved the swingset2.jnlp file from the sun demo's page, used the Swingset2.jar file from the JDK 1.3.1 demos and got the swingset2.jnlp images and put them in an images subdirectory. Next I amended the swingset.jnlp to my own web server by changing the cobebase parameter. I then created a simple web page wrapper with a link to the jnlp file.

In my directories I have the following files:

swingset2.html
swingset2.jar
swingset2.jnlp
images\swingset2.small

On the server side IIS 5.0, I go into master properties for my web server, go to HTTP headers and hit the file types button.

I then add a new entry with associated extension .jnlp and content type of application/x-java-jnlp-file

Also found and changes the IIS.inf file just in case.

Rebooted the web server to make sure everything is initialised correctly.

When I launch the jnlp file from a client PC "Java Web Start" starts but I get the following error "Unable to launch Swingset2", details "category: download error. Bad MIME type returned from server when accessing resource: http://Newgreg/jaws/Swingset2.jnlp - text/html.

The jnlp used is listed:

<!--
###############################################################################
#
# @(#)template.jnlp 1.2 01/04/25
#
# JNLP File for SwingSet2 Demo Application
#
###############################################################################
-->


<?xml version="1.0" encoding="utf-8"?>

<jnlp spec="1.0+"
codebase="http://NewGreg/jaws/apps"
href="SwingSet2.jnlp">
<information>
<title>SwingSet2</title>
<vendor>Sun Microsystems, Inc.</vendor>
<homepage href="../demos.html"/>
<description>SwingSet2 Demo</description>
<description kind="short">A demo of the capabilities of the Swing Graphical User Interface.</description>
<icon href="images/swingset2.small.jpg"/>
<offline-allowed/>
</information>
<resources>
<j2se version="1.3+"/>
<jar href="SwingSet2.jar" main="true" download="eager"/>
</resources>
<application-desc main-class="SwingSet2"/>
</jnlp>

Can anyone help??? I would love to start using this technology, it looks very promising.

Email: greg_hughes@business-post.com

:)




Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2001
Added on Jul 27 2001
2 comments
215 views