problem with jnlp file - jnlp content appers in the browser

Hi ,

am trying to use JWS for a simple java application. this is the cod efor my

javacodes.jnlp file

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

<jnlp spec="1.0+" codebase="javacodes/" href="Javacodes.jnlp">

<information>

<title>Mon Application par JNLP</title>

<vendor>Auguste LUNANG</vendor>

</information>

<resources>

<j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>

<jar href="javacodes/javacodes.jar" />

</resources>

<application-desc main-class="javacodes/javacodes.TestJWS" />

</jnlp>

I create it in notepad, and i am not sure on the way i used it .

When i try to launch it on my web site , all the content of my jnlp appears . JWS never start ......

What can be th problem ?

Thx

Sorry for my english.

[892 byte] By [chaka_zulua] at [2007-11-27 11:01:42]
# 1

I am having similar problem.

I added the jnlp mimetype to my server and now the JNLP will launch from internet explorer, however firefox still shows the contents of the .jnlp instead of launching the application.

Will others have the same problem with firefox? How do I tackle this issue?

generatednamea at 2007-7-29 12:38:34 > top of Java-index,Desktop,Deploying...
# 2

I had a similar problem a few weeks back

Its all to with Mime Types

Which can affect both Client #(Browser) and Server (Web Server) Side.

The browser or server thinks the jnlp is just a normal file instead of a file which is like an exe (use exe term loosely) (runs when you click it, invokes some command)

The server side stuff fixed the problem for me, so now users have no problem running the java web start applications.

The following sun Java FAQ touches on this problem.

http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#223

The details for fixing the problem with Apache web server are here, that is if you have one...

http://www.flashcentral.com/Tech/Server/Apache.htm

For Client side check this webpage out. As this page details which browsers work (and some cases how they work with jnlp) etc

http://mindprod.com/jgloss/installingjaws.html

Hope this helps

Regards

Tible

First post woooo

Tiblea at 2007-7-29 12:38:34 > top of Java-index,Desktop,Deploying...