|Search | Archive | Categories|
JNLPException[category: Download Error : Exception: java.net.SocketException: Unexpected end of file from server : LaunchDesc: null ]
I tried testing the jar file by itself. To do this, the jar manifest file needed to include the main class. My manifest file (with an extra blank line at the end):
Created-By: 1.3.1_03 (Sun Microsystems Inc.)
Then I created the jar file and ran it:
jar cmf myManifestFile test.jar demo/*.class images/*
java -jar test.jar
That worked fine. So I then verified that the MIME types on the server were set to:
I also analyzed the http headers with this nice little java program.
Eventually, I tried using Apache as the server and it worked! But I still couldn't get it to work with MS IIS. Oh well.
A debugging tip, if you specifiy the codebase of the jnlp file to point to the local file, it won't do a http request for the jar file.
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase ="file:///d:/dev/swing/demo/classes"
Java Web Start Developer's Guide
Posted: 2003-02-26 16:17:21
|<< Browser Software Repository||Automatic Logon to Windows 95, 98 and Me >>|