IE downloads jnlp-file

I can not launch my application from IE.
When I launch it from Command Prompt like this:
javaws project.jnlp
it works fine.
But when I try to launch it from IE
http://localhost:8080/project.jnlp
it starts to download jnlp-file.
What am I doing wrong?
I use TomCat and it's web.xml file contains
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>

Make sure web start is installed, which is looks like it is.
That should associate itself with jnlp files.
In Explorer, Tools, Folder Options, File Types tab
should be an entry for JNLP files to launch with javaws.exe
Also needs to be associated with application/x-java-jnlp-file mime type
(web start should have set both of these up).
Make sure the IE setting:
Empty Temp Internet Files when browser is closed = off/unchecked
Empty your IE cache after restarting tomcat making sure that mime type is set there too, and then try again.
Something else you can try is to double click your jnlp file and make sure web start opens it.

Similar Messages

  • Download .jnlp file when first time

    Hi Everybody,
    I am new bee for java web start.
    We are having swing application which we want to distribute through Java Web Start. Client can run application through provided web link. we also want to download .jnlp file to the client machine when user clicked the link first time.
    I go through different thread for the above problem in this forum, but though not getting clear idea as in our application, we need to generate dynamic .jnlp file. All solution posted for the above problem assuming that .jnlp file exists at some location, but in our case we have to generate it when user clicked it first time. Any body having some idea ?
    Our second problem is, can it possible that user will run the swing application only when he click the link provided on the web server ? In our case authentication of user is done in our web application and when user will click the provided link user id and other information will be pass to swing application as parameters through .jnlp file. If that application will available offline user can run it through last downloaded .jnlp file without clicking the link , which will be not allowded. Also we are concern about multi user environment, as we are thinking to dynamic generation of .jnlp file , it may possible that other user running the same application noted .jnlp file version difference and will download the .jnlp file of other user ?
    Can any body have any idea, how can we done the above scenario ?
    Thanks in advance,
    Dimpal

    If you upgrade to Java 1.4.2 it will present a dialog asking for desktop
    integration the first time you start the application.
    Maybe that's what you want?

  • System tries to download .jnlp file through SSL

    Using Tomcat5 on Windows when running HTTPS, when I click the link to Launch my .jnlp file it just tries to download it to my file system. When I disable SSL and run nomally with HTTP, it works fine. Why won't JWS pick it up through HTTPS???
    THANKS!

    Check the mime-types... generally download errors happen if the mime-type is not properly delivered by the server. I fear it may be Tomcat does this.
    To check the mime-type, try to see inside the download-manager of the browser, or something such.
    paul

  • Cleaning up JNLP files

    Is there a way to reliably clean up downloaded JNLP files from the desktop or wherever the user has specified downloads are to be placed when the application is done?
    Leaving a bunch of JNLP files littering the desktop or home directory seems somewhat antisocial.
    Thanx.

    Hm. I thought I was pretty clear but let's try again.
    As we all know, I assume, when a user running a web browser clicks on a link pointing to a JNLP file, that file is downloaded, either to the user's desktop or to some temp directory or folder, depending on the user's preferences. That JNLP is fed to Java Web Start, Java Web Start downloads JAR files, if necessary, to the user's cache, and launches the application.
    What I want to be able to do is to cause that JNLP file to be automatically or programmatically deleted at some point, probably when the user exits the application.
    What's currently happening is that old Whatever.jnlp, Whatever-1.jnlp, Whatever-2.jnlp. . . files accumulate on the user's desktop and the user has to delete them manually, which strikes me as being somewhat antisocial.
    Also, at least on a Macintosh, the user can doubleclick on the JNLP file icon and launch the program, which I do not want, since the application is under active development.
    I understand about <offline-allowed> and my JNLP does not have this line, so Java Web Start will always go to the server to fetch new JAR files but I have had occasions where new JAR files have been added and the old JNLPs, of course, do not refer to them and the user gets confusing results.
    Thus I want to make the downloaded JNLP file go away once the application closes.
    My users are on several different types of computer (Linux, Solaris, FreeBSD, Mac, and Windows) so a "Windows-only" solution is not especially useful.
    This has nothing to do with shortcuts or Windows "Add or Remove Programs."
    Clear enough?

  • Unable to download JNLP in internet explorer.

    I am not able to download JNLP using internet explorer.
    It is showing message as
    Internet Explorer cannot download <jnlp file name > from <server ip>.
    Internet Explorer was not able to open this internet site.The requested site is either not avalilable or cannot be found. Please try again later.
    Please help.

    java_insight wrote: I am not able to download JNLP using internet explorer.
    Did you try using FireFox (or any other browser)?
    java_insight wrote: It is showing message as
    Internet Explorer cannot download <jnlp file name > from <server ip>.
    Internet Explorer was not able to open this internet site.
    What internet site? Of more specifically, what exact URL is in your IE's address bar when you get that message?
    It might simply be that the site's server is 'offline'.
    java_insight wrote: The requested site is either not available or cannot be found. Please try again later.
    By the way. Keep trying it occasionally.
    java_insight wrote: Please help.
    I doubt anyone can offer much help without more specific and exact details from you.
    Edit 1:
    Now that I note that this thread was ['crossposted'|http://forum.java.sun.com/thread.jspa?threadID=5304280] I am very inclined not to offer further help. You might want to consider never doing that again.
    Edited by: AndrewThompson64 on Jun 11, 2008 12:34 PM

  • Unable download JNLP using internet explorer.

    I am not able to download JNLP using internet explorer.
    It is showing message as
    Internet Explorer cannot download <jnlp file name > from <server ip>.
    Internet Explorer was not able to open this internet site.The requested site is either not avalilable or cannot be found. Please try again later.
    Please help.

    Crossposted

  • No update-check on JNLP-file when start from other location than codebase

    we are using JWS version 1.0 and 1.4.2.
    Our clients have a common directory on the local disc which contains all the JNLP-files used in their organization. Some menu-links and some other applications are using this JNLP-files to launch and jump into the applications.
    The JNLP-file repository is provided by an http-URL location. The JNLP-files in the local directory are directed by the codebase-attribute to this repository.
    JWS processes the launch in following way:
    1. read the codebase and href-attribute from the launched JNLP-file.
    2. get timestamp from the original in the JNLP-repository
    3. check if already cached and with latest timestamp.
    4. download JNLP-file if not cached or not latest version.
    5. check/download all other resources.
    6. start the app.
    With JWS shipped with JRE 1.5 (Beta was fine) this doesnt work in the same procedure:
    1. copy the launched JNLP-file in the empty JWS-cache.
    2. set a new timestamp on the cached JNLP-file (it does not let the old timestamp).
    3. get timestamp from the original in the JNLP-repository (given with the codebase & href attribute)
    4. check if already cached and with the latest timestamp.
    5. download JNLP-file if not cached or not latest version. (will never appear because timestamp in cached version is newer)
    6. check/download all other resources.
    7. start the app. (with probably not latest resources)
    Is this behaviour ok or is this a Bug?

    hi Andy,
    we tried with 1.5.0_04, 1.5.0_06 and 1.5.0_07 and it was always the same problem.
    With the beta 1.5.0 (jawaws.jar's build.id = b64, 15/09/2004) it worked correctly.
    Roland.

  • Download  resources that are not listed in the JNLP file

    There is some way to download resources that are not listed in the JNLP file, and then
    ask for them with DownloadService ? (isResourceCached)
    thanks.

    currently, the jnlp spec requires DownloadService to access only resources specified in the jnlp file..
    changing this is a proposed RFE for the next spec version:
    4908304: JWS DownloadService should not require mention in JNLP file
    /Dietz

  • Cannot download a .jnlp file

    I'm encountering an error while downloading a .jnlp file. Everytime I try to download a .jnlp file it just shows me the source code for the jnlp.

    I had the same problem.
    Try clearing your browser cache.
    If you accessed the jnlp file in your browser before you set up the application helper (application/x-java-jnlp-file .jnlp), the browser would have cached the page and displayed it as text.
    If that doesn't fix it, make sure you have set up the web server to handle the jnlp mime type. From the Web Start developer docs:
    -snip-
    Each Web server has a specific way in which to add MIME types. For example, for the Apache Web server you must add the following line to the .mime.types configuration file:
    application/x-java-jnlp-file JNLP
    -snip-
    Then make sure you have set up your browser to launch <JRE_HOME>/javaws/javaws when it encounters the jnlp mime type. In Netscape, this is done using "Application Helpers".

  • How can I download two jnlp files by sequence?

    Hi,
    I want to download two jnlp files by sequence.
    When I click a link,first download a file,finish the operation.
    then download another.
    How can I do this?
    Thanks.

    Why do you want to do this ?
    I don't think that could work that way... But it is possible to reference others JNLP files inside a JNLP file.
    Example in my own jnlp file:
    <jar href="jte4.jar" main="true"/>
    <extension name="JTDS JDBC Driver" href="jtds.jnlp"/>

  • Stray jnlp files gets downloaded onto the desktop when using Safari on MAC.

    We are using jdk 1.4 webstart and safari browser on a mac machine.
    Once the web start begins a jnlp file gets downloaded on to the desktop but does not get deleted. This happens each time the webstart begins thus the desktop is cluttered with stray .jnlp files each time web start is used.
    Is there any workaround such that these files don't get downloaded at all or gets deleted once the web start closes?

    Don't multi-post:
    http://forum.java.sun.com/thread.jspa?threadID=5136297&messageID=9496292#9496292

  • Jnlp file downloads then opens in TextEdit

    Have multiple Macs running 10.5.7 w/latest software update. Each trying to use the same web application. Web app downloads a .jnlp file. For most Macs, it launches Java and life is good. On a lone Mac (so far), the .jnlp file downloads, but is opened by TextEdit. Check File Info, and it's associated with TextEdit, so there's the culprit. On the working Macs, the file is associated with Java Web Start.app. So, I figured I'd change the association on the Mac that's broken, but I can't find Java Web Start.app. It doesn't show up in Spotlight, so I use the locate command in Terminal and find it listed as being found in /Applications/Java. This folder does not exist on any of the Macs in this scenario. Where is it?! How do I fix the association for .jnlp files to be Java Web Start.app?
    Thanks!

    I have the same problem. After running the latest Java update, Java Web Start is gone. I have Xcode installed on my machine, but still don't have Java Web Start anywhere on my drive.
    I attempted to restore it to /Applications/Utilities/Java using Time Machine, but when I launched it, it merely crashed.
    I understand that part of the Java update was to patch a vulnerability that could be exploited through Java applications launched from the web, but I was under the impression that there was a fix that didn't simply involve disabling Java Web Start. Is there a new version of Java Web Start out there that doesn't crash with the new Java update? Alternately, is there a way to run a jnlp file without a working version of Java Web Start?
    I have a program that I absolutely need to have running in the next 30 minutes -- which doesn't give me enough time to roll back the whole update. Is it too much to expect Apple to fix what they broke with this update?
    -JMP

  • Specific version of jre in .jnlp file and downloading from local server

    Hi,
    I have couple of questions regarding the specific version of jre in Java WebStart.
    1) I have specified the jre version in .jnlp file as below.
    <resources>
    <j2se version="1.3.1_02"/>
    </resources>
    When I saw the File/Preferences/Java of Java WebStart installation, there is an entry with the "Product Version" value as 1.3.1_02 as I installed jre also before launching my application. Still it complains as,
    The application has requested a version of the Java 2 platform (JRE) that is currently not locally installed. Java Web Start was unable to automatically download and install the requested version. The JRE version must be installed manually.
    Error Code 11 (11 Could not locate requested version) returned from server when accessing resource: (http://java.sun.com/products/autodl/j2se, 1.3.1_02)
    When it is there already, why it is trying to get from the Sun's site.
    2) I want Java WebStart to download the specified version of jre from my local server, I specified this in the following way,
    <resources os="Windows">
    <j2se version="1.3.1_02" href="http://host:9095/j2re-1_3_1_02-win.exe"/>
    </resource>
    I got the error saying,
    Bad MIME type returned from server when accessing resource: (http://host/j2re-1_3_1_02-win.exe, 1.3.1_02) - application/octet-stream. where host is my server name. What I need to do here.
    Can I have multiple resource tags one for each os.
    Help is highly appreciated.
    Thanks,
    Sreedhar.

    Hi Sreedhar,
    There are some other useful threads in this forum on this topic:
    the "Automatically Installing the IBM JRE 1.2.2" thread has tips from somebody who's put together auto-download of JREs from his own web site:
    http://forum.java.sun.com/thread.jsp?forum=38&thread=71061
    Also, the behavior of the j2se tag is discussed a little in the "Using a specific JRE" thread: http://forum.java.sun.com/thread.jsp?forum=38&thread=158075
    The first step is to add an href attribute to your j2se tag. I was just experimenting with this this afternoon,
    and it appears that unless that href is specified (even if it's the java.sun.com default autodl URL!) JWS will not properly check locally-installed 1.3.1 JREs. Once you include Sun's autodl URL as an href, JWS will at least properly enforce the product version among locally-installed JREs. Of course, Sun doesn't actually include 1.3.1 in its autodl section, so it won't download it for you, but it will enable checking of the JREs already installed.
    The second step is downloading JREs from your own web site, which is more complicated and explained better by other messages in the forum. But basically, JWS is not simply looking for a .exe installer for a particular JRE. It hits the webserver with a query and expects the webserver to give it back an installer's JNLP file. Look at the referenced threads for more details.
    Jim

  • ".. access denied: ... jnlp read" error in applet with NO .jnlp file!

    I'm trying to embed a Java program called ImageJA [http://pacific.mpi-cbg.de/wiki/index.php/ImageJA] into a webpage. I'm using ASP.NET with XHTML 1.0. Since I'm embedding it as an object in the html code, it should not cause any issues from that end. Unforunately, when I try I get an error saying "java.security.AccessControlException: access denied (java.util.PropertyPermission jnlp read)". The weird thing is, there is no jnlp file anywhere (including the .jar and codebase).
    I'm able to run it successfully if I change the permissions in my java.policy file, but that solution only works for my local machine.
    The .jar file (the only one) has been signed (I believe). I followed the steps as suggested [http://download.oracle.com/docs/cd/E17476_01/javase/1.4.2/docs/guide/plugin/developer_guide/rsa_signing.html], with the exception of contacting VeriSign/Thawte (I wish to have this be self signed).
    This seems like a very odd issue to me, and I'm running out of hair. Can anyone help?
    Here's my html code:
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Untitled Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <object
    classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase = "[http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab]"
    width="500" height="500">
    <param name = "code" value = "ij.ImageJApplet.class" />
    <param name = "codebase" value = "ImageJA" />
    <param name = "archive" value = "ij-1.44a.jar" />
    <param name="type" value="application/x-java-applet;jpi-version=1.4.2" />
    <param name="scriptable" value="true" />
    </object>
    </div>
    </form>
    </body>
    </html>
    Edited by: Sythion on Jul 13, 2010 2:19 PM

    Sythion wrote:
    I'm trying to embed a Java program called ImageJA [http://pacific.mpi-cbg.de/wiki/index.php/ImageJA] ..
    I suggest you take up the problem through the [channels suggested by the API developers|http://pacific.mpi-cbg.de/wiki/index.php/Help:Contents].

  • Deploying a JNLP file to corporate users?

    When it comes to Java, I'm pretty clueless. I was a VB programmer years ago, and now I deal mostly with Python apps.
    I have a corporate client with ~80 workstations. One of their primary business applications is deployed by a jnlp file. Their tech support said to go to http://theirapplication.com/app.jnlp and the program will install.
    I have tried a few test methods of getting this pushed out to every user.
    The first was to deploy a shortcut to their desktop called "TheirApp" which pointed to that jnlp file.
    In practice, that launches IE, downloads the JNLP file, checks if the app is installed, installs it if it isn't, and then runs the app. Plus, the app drops a new shortcut onto the desktop for directly launching the program. The shortcut points to javaws and then a long path to some per-user cache folder. So now users are confused by two shortcuts.
    When the app initially starts, it asks for a bunch of settings--like really long account numbers. All this info appears to be per-user. So when users sit down at a different workstation (which happens frequently in their environment), clueless users are asked to install the app and put in all those initial settings.
    The second method was a failure--I tried deploying a shortcut to start javaws pointing to that cache folder. I didn't really expect it to work. On new machines it failed because that app hadn't been installed into that cache folder yet. On existing installs, it would work for users that had previously installed it, but new users wouldn't work because the cache folder is stored under a different users settings folder.
    So I guess my questions for the Java community would be these:
    Is there a way to deploy a java webstart app per-machine?
    Is there a way to share the same cache folder between all the users on the network so they see all the same settings?
    Does anyone have similar experiences and suggestions on how to better deploy jnlp applications?
    Thanks for reading.
    -Aaron

    To pre-install you can use the -import option.
    Something like
    javaws -import -silent http://whateverTheServer.ext/whateverTheJnlp.jnlpYou could even copy all files to a local server and override codebase with -codebase option.
    You could try (but I've heard people complain about it) to use the -system option so that all machine users run same instance (app is installed once per machine, not once per user and machine).
    About properties, the most common way to store data is to put them in the user.home dir, have a look there, maybe you can spot out a file (or a directory) and just tell user to copy their setting on a USB drive and paste them (into user.home) on any other machine they're gonna use.
    Bye.

Maybe you are looking for