Hello,
I used this topic http://www.java-gaming.org/index.php/topic,21073.0.html to deploy my applet over Internet. I have made my application.jar and the JNLP file on the server. But when running the applet on Internet, it couldn’t find the JNLP file. I have the following error in the java console.
exception : JNLP file error: http://130.79.176.164/Sig_koussa/JNLPFile.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct..
java.io.FileNotFoundException: JNLP file error: ftp://130.79.176.164/Sig_koussa/JNLPFile.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception : java.io.FileNotFoundException: JNLP file error: ftp://130.79.176.164/Sig_koussa/JNLPFile.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.
The code used for the applet is the following
<applet
code="org.jdesktop.applet.util.JNLPAppletLauncher"
width="1200"
height="600"
codebase="."
archive="
http://download.java.net/media/applet-launcher/applet-launcher.jar,
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
http://130.79.176.164/SIG_Koussa/GISJAR.jar">
<param name="codebase_lookup" value="false">
<param name="noddraw.check" value="false">
<param name="progressbar" value="true">
<param name="jnlpNumExtensions" value="1">
<param name="jnlpExtension1" value="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp">
<param name="noddraw.check" value="true">
<param name="noddraw.check.silent" value="true">
<param name="java_arguments" value="-Dsun.java2d.noddraw=true">
<param name="subapplet.classname" value="editor.GIS3DViewer">
<!-- edit: the title of your game -->
<param name="subapplet.displayname" value="GIS INSA">
<!-- edit: the name of your jnlp file -->
<param name="jnlp_href" value="http://130.79.176.164/SIG_Koussa/JNLPFile.jnlp">
</applet>
And the code of the JNLP file is
<?xml version="1.0" encoding="utf-8"?>
<!-- edit: change the href attribute to the same name that you give to this file. -->
<jnlp href="JNLPFile.jnlp">
<!-- edit: generic information, edit or remove all the values except
the update check at the bottom -->
<information>
<title>Jogl Maze Game</title>
<vendor>Michael Rooney</vendor>
<homepage href="http://www.micsworld.com"/>
<description></description>
<description kind="short"></description>
<update check="background"/>
</information>
<resources>
<j2se version="1.6+" />
<property
name="sun.java2d.noddraw"
value="true" />
<jar href="SSG_Tools.jar" />
<!-- edit: the jar containing your main class -->
<jar
href="GISJAR.jar"
main="true" />
<extension
name = "jogl"
href = "http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" />
</resources>
<!-- edit: all four details need to be changed -->
<applet-desc
name = "GIS INSA"
main-class = "editor.GIS3DViewer"
width = "500"
height = "500" >
</applet-desc>
</jnlp>
I am sure that the JNLP file is on the right adress, but always i have the error: FileNotFoundExecption as shown in the java console.
Could you please help me to resolve the problem?
Thanks.