Re: Impossible to launch ressources: http://Server/application.jar
Frank wrote:
...
I'm getting an error message ...
Given we (or at least me) are not psychic, and not
sitting in front of your PC, it might help if you told
us the *exact* error message given. Copy/paste it,
rather than paraphrase it, please.
...wqhen I try to launch an application. The
application is in IIS and I'm using a .jnlp file.
A web start app.? Is it publicly available?
Got an URL for us?
I guest I need to register my .jar file
I am almost certain that is a wrong guess.
Is the Jar accessible when you try to get it
using a browser?
... but how ??? Or do I have
to add MIME typs .jar in IIS ???
Possible, but not *very* likely. Most developers
have a modern JRE, and most modern JRE's
will go to efforts to reconfigure browsers to handle
JNLP files correctly, even if the server is giving the
wrong content type.
OTOH, it does not hurt to check.
The mindprod site has a handy applet for checking
the content-type returned for resources.
<http://mindprod.com/jgloss/mime.html>
Note that applet requires accepting signed code
(so it can access resources that are outside
the mindprod site), and can only check publicly
available resources. If the JNLP is not publicly
available, you might need to use
URLConnection.getContentType() in code
from your own system.
Also note that one single '?' is always enough
to indicate a question. Unless you expect us
to give our answers in triplicate?
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-setup/200706/1