.jnlp file association

We have a JNLP application. A recent Java7 upgrade seems to have removed the file association between javaws.exe and .jnlp files. We have experienced this on multiple client machines. On one, Windows would not all us to create the association through the normal means of "Open With...".
Is this a known issue?

Our workaround was to update the registry manually (obligatory warning about doing this on your machine!)
Computer\HKEY_CLASSES_ROOT\Applications\javaws.exe\shell\open\command
Then edit that value to point to a 32-bit javaws.exe – this one happens to be in the jre7 folder:
"C:\Program Files (x86)\Java\jre7\bin\javaws.exe" "%1"In addition to this check if there is association for .jnlp in the HKCU branch. If you ever tried "Open with" then windows will add association to user branch and it will hide system wide settings.
Good way to troubleshoot this is to use Process Monitor from sysinternals.com and inspect what .jnlp related registry keys are read.
Please file a bug if you can find a way to reproduce a problem or will find out what exactly is wrong in the registry.

Similar Messages

  • Problem changing JNLP file association

    I installed SUN JRE 1.5 Update 7 in a fresh Windows XP machine and found the registry recongizes the JNLP file extension is associatied with it. Then I installed an application that downloads IBM WebSphere Application Client 6 which actually uses IBM JRE 1.4.2 . After this installation IBM JRE changes the .jnlp file association from Sun JRE 1.5.0_07 to its own 1.4.2 version.
    Now I needed to change the JNLP file association back to previous one. I used Windows Explorer->Tool->Folder Options->File Types->Advanced->Edit and did that. However, I see my registry didn't change the association from IBM JRE to Sun JRE. But when I look at Java Control Panel, it says its associated with Sun JRE. Here is a windows shell script that I run to see the current JNLP file assocaition - which alwasy tells me its OBM JRE which is associated with the JNLP file extension. I tried restarting the machine, removing the cached copy from Java Control Panel without any difference.
    Can you tell me when this file type association may not work and why? Is there any Windows Security Patch issue here? Also what are the registry keys that I should look for (a few are mentioned in the script below)?
    code:
    // To run it:
    // CScript //Nologo JWS.js
    var fso = new ActiveXObject("Scripting.FileSystemObject")
    var gShell = new ActiveXObject("WScript.Shell")
    function print(s) {
    WScript.Echo(s)
    function JavaSoft_JWS() {
    var regKey = "HKLM\\SOFTWARE\\JavaSoft\\Java Web Start\\"
    var ver = gShell.RegRead(regKey + "\\CurrentVersion")
    var path = gShell.RegRead(regKey + "\\" + ver + "\\Home")
    var javaws = path + "\\javaws.exe"
    print("Sun JWS")
    print("\tversion: " + ver)
    print("\texe: " + javaws)
    function IBM_JWS() {
    var ver = "1.4.2"
    var regKey = "HKLM\\SOFTWARE\\IBM\\Java Web Start v" + ver + "\\"
    var path = gShell.RegRead(regKey + "\\" + ver + "\\Home")
    var javaws = path + "\\javaws.exe"
    print("IBM JWS for HKLM: ")
    print("\tversion: " + ver)
    print("\texe: " + javaws)
    function JNLP_ASSOC_HKEY_LOCAL() {
    var regKey = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\JNLPFile\\Shell\\Open\\Command\\"
    var path = gShell.RegRead(regKey)
    var javaws = path + "\\javaws.exe"
    print("HKEY LOCAL MACHINE Current JNLP File Association: ")
    print("\texe: " + javaws)
    function JNLP_assoc_HKCR() {
    var regKey = "HKCR\\JNLPFile\\Shell\\Open\\Command\\"
    var path = gShell.RegRead(regKey)
    print("Current JNLPFIle association for HKCR:\t" + path)
    function main(args) {
    JNLP_ASSOC_HKEY_LOCAL()
    JNLP_assoc_HKCR()
    JavaSoft_JWS()
    IBM_JWS()
    ---------------------------------------

    Did the clients happen to know what version they were upgrading from? We have seen this mostly when a system upgrades major Java versions, eg from 1.6 or 1.7 or switching from 32 to 64 bit Java and C:\Windows\System32\javaws.exe disappears or something silly.

  • New Apple Java update breaks jnlp file association

    I thought this might be helpful for other people experiencing this problem.
    It seems that the latest Java update for Macs (10.5 update 4) breaks the file association for jnlp files. When you use one it opens up a text editor. To make matters worse they have moved the location of Web Start.
    The only way we have been able to fix this is:
    1. Control-click the jnlp file that was downloaded to the desktop and select “Get Info”
    2. Click “Open with” and select “Other…”.
    3. At the top of the window select “All Applications” in the Enable box.
    4. Browse to /System/Library/CoreServices and select Java Web Start.
    5. Click the “Always Open With” checkbox at the bottom.
    6. Click the “Add” button.
    7. Double-click the jnlp file on the desktop which should now launch the workbook.
    If anyone else has some more information or another solution, then please reply here.

    Thank you so much for this. I didn't find this post the first time I searched on this problem, and I was mired down in versions-specific directories with javaws--which appears only as a link that cannot be used as an association.
    MUCH appreciated!
    --Paul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • JNLP - how to do multiple file associations?

    hello, trying to find a way of associating my jnlp file with multiple file extensions through the <association> tag
    I've found jnlp file examples on the web that merely have multiple <association> tags, but in the latest webstart version 6.0 this seems to be illegal - the dtd has <association?> listed, meaning one or no association elements. Lo and behold, trying multiple <association> tags just crashes webstart - it won't run my application.
    Any way round this?

    I suppose the first option is a way round it, but I have two very definite types of file I'd like to associate my application with, and I'd like to give them a different icon each rather than the same one.
    Also when i include multiple association tags - even with different filetypes and mime-type associations - webstart 6.0 always crashes with the error below. The only change I make is commenting in or out a second assocation tag in my jnlp file, and given the trace below it appears the association tags are the cause, so I don't know if this is just the dtd with an error, it appears to be enforced in the javaws code too.
    java.lang.NullPointerException
         at com.sun.javaws.LocalInstallHandler.promptReplace(Unknown Source)
         at com.sun.javaws.LocalInstallHandler.registerAssociation(Unknown Source)
         at com.sun.javaws.LocalInstallHandler.createAssociations(Unknown Source)
         at com.sun.javaws.LocalInstallHandler.install(Unknown Source)
         at com.sun.javaws.Launcher.notifyLocalInstallHandler(Unknown Source)
         at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • How to make file associations in my java apps

    I am making a Graph maker in Java. Just give x = 1,2,3,4,5 and corresponding y = f(x) and get the discreate graph.
    The graph can then be saved as a file of extention .grf (say) on the hard disk, and can be opened in my graph maker software for editing, viewing e.t.c.
    Now my problem is that I want that when I dubble click on a file xyz.grf my graph maker should open automatically with this file opened in it, like other applications on windows say Notepad - dubble click on xyz.txt it will automatically launch Notepade with this file.
    In other way I want that any .grf file gets associated to my graf maker.
    Please help me and tell me the way, how should I proceed and how can I do this.

    aashishjava wrote:
    Yes Yes Yes It is 99% what I wanted to have. Thanks a lot ....You're welcome.
    But now I want some thing more,(hand to forehead) They always want more. ;)
    (a) There is a splash screen in my app. but JNLP always show its own splash screen, ...Webstart splash screens work differently to those of plain Jar files (which is unfortunate). A webstart splash screen has to be not included in the Jar, but available as a separate resource. The splash is defined in the JNLP launch file. For further details see the [JNLP File Syntax|http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html].
    <quote>
    The optional kind="splash" attribute may be used in an icon element to indicate that the image is to be used as a "splash" screen during the launch of an application. If the JNLP file does not contain an icon element with a kind="splash" attribute, but does contain another icon tag, Java Web Start will display a splash screen consisting of the image specified by the icon element on the left and the application's title and vendor on the right.
    The first time an application is launched following the addition or modification of the icon element in the JNLP file, the old splash image will still be displayed. The new splash image will appear on the second and subsequent launches of the application.
    </quote>
    The 'ignored first time' is because the webstart client is more focused on getting the app. downloaded, cached and launched, than showing splashes. Once the app. is on-screen, it will download the splash in the background.
    One other 'gotcha' of splash screens is that the JNLP file must define a href in the JNLP element for the splash to be used. The webstart client assumes that a JNLP with no href is dynamically generated, and will not be the same twice. Because of that it ignores the splash!
    Edit 1:
    Unfortunately, I do not have any direct examples of using splash screens A splash is usually on my 'To Do' list for projects, but it is a very low priority.
    Edited by: AndrewThompson64 on Dec 10, 2009 11:35 AM

  • File association with m2v gone

    I saw earlier posts about trying to view/use m2v and Finder window closing and DVD Studio unable to use the files. I had the same closing file problem with Finder and m2v files after upgrading to 5.04. I was able to change ONE m2v file to Quicktime but even checking "Apply to All" and rebooting didn't work. When I right click the file the default for m2v is "Droplet" which I can't get rid of. ALL HELP APPRECIATED.
    PowerMac Dual 1.8 G5   Mac OS X (10.3.9)  

    Yes - you can do so with the new association feature in Java Web Start 1.5
    Basically you specific the file ext and/or mime-type that you want to associate with in the jnlp file; and when javawebstart launch the application, it will prompt you to see if you want to create the association.
    Refer to the JNLP spec changes in Java Web Start 1.5 for more details:
    http://jcp.org/aboutJava/communityprocess/maintenance/jsr056/jnlp_spec.html#4756982
    You can download J2SE 1.5-beta (which includes javawebstart) now and give it a try!
    http://java.sun.com/j2se/1.5.0/

  • Did JWS prompt for file associations in 1.5?

    I have a vague memory of running a sandboxed app. that claims file associations, and being pleased to see a prompt asking whether I (as a user) actually wanted to make the file association.
    That was in 1.5. I just tried the same app. again in 1.6 (it is my [sandboxed demo of the JNLP API file services|http://pscode.org/jws/filetest-sandbox.jnlp]) and although I was prompted for 'desktop integration' (it also suggests a desktop shortcut) there was no prompt for the file association.
    You can get the build files at the [page that describes the file service|http://pscode.org/jws/api.html#fs].
    Is my memory faulty? Has there been a change in the way file associations are handled?
    Edit 1:
    I forgot to add. The file type claimed is '.zzz'. A normal '.txt' file renamed to '.zzz' will open in my little demo just fine (tested it just then). So the file association is successful, it is just that I was not prompted, that bothers me.
    Edited by: AndrewThompson64 on Sep 8, 2008 4:00 PM

    I have exactly the same issue affecting InDesign and Illustrator. Photoshop had the same issue but it allowed you to set the default program. It seems the only way to do it is to open the program and open the document from there. This is a complete pain!

  • How to change the argument input in a jnlp file?

    A question associated with the following few lines of jnlp codes:
    <application-desc main-class="Main">
    <argument>arg</argument>
    </application-desc>
    My question is: "How can 'arg' be changed dynamically?
    Thanks for help.

    Thank Dietz for help.
    I tried the following jsp code. But it can launch the application only when "test2.jnlp" file exists. "argument to change" can't be passed to the application.
    Thanks.
    <% response.setContentType("application/x-java-jnlp-file");
    out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    out.println("<jnlp ");
    out.println("spec=\"1.0+\" ");
    out.println("codebase=\"http://tang:8080/examples/rtla/\"");
    out.println("href=\"test2.jnlp\">");
    out.println("<information> ");
    out.println("<title>RTLAFrame viewer</title> ");
    out.println("<vendor>XXX, Inc.</vendor> ");
    out.println("<description>RTLAviewer Application Demo</description>");
    out.println("<description kind=\"short\">A viewer.</description> ");
    out.println("<offline-allowed/> ");
    out.println("</information> ");
    out.println("<security> ");
    out.println("<all-permissions/>");
    out.println("</security> ");
    out.println("<resources> ");
    out.println("<j2se version=\"1.3+\"/>");
    out.println("<jar href=\"test.jar\"/> ");
    out.println("</resources> ");
    out.println("<application-desc main-class=\"RTLAFrame\">");
    out.println("<argument>argument to change</argument>");
    out.println("</application-desc> ");
    out.println("</jnlp> ");
    %>

  • File association with JWS and windows

    Hi,
    We are moving all our applications over to JWS from install anywhere. One final hurdle we have is the requirement to associate a file extension with a given JWS application.
    e.g a double clicking a .foo file will launch JWS application MYJWSFooApp.
    As install anywhere defines the install directory and exe file this is possible. Has anyone managed it with JWS ?
    Thanks
    Chris

    Yes - you can do so with the new association feature in Java Web Start 1.5
    Basically you specific the file ext and/or mime-type that you want to associate with in the jnlp file; and when javawebstart launch the application, it will prompt you to see if you want to create the association.
    Refer to the JNLP spec changes in Java Web Start 1.5 for more details:
    http://jcp.org/aboutJava/communityprocess/maintenance/jsr056/jnlp_spec.html#4756982
    You can download J2SE 1.5-beta (which includes javawebstart) now and give it a try!
    http://java.sun.com/j2se/1.5.0/

  • Problem in file association and main-class in JWS

    Hello , all
    I have a problem in JWS with file association and main-class. I have a java application that has two entry classes, one is appmain.class that is required to launch from web, and the other is player.class that is required to launch when user double-click the .abc extension file.
    In JWS 5.0+, there is a association element in JNLP syntax that can be used to make the file association with .abc extension. But how can I declare the main-class in JNLP file?
    If I declare the application-desc element as <application-desc main-class="player">, the player.class will be launched from web. But if I declare it as <application-desc main-class="appmain">, the .abc extension wil be associated to the appmain.class.
    Does anyone know how to solve this problem? Thank you for your kindly help.

    One way is to define a third main that refers
    to the other two, as appropriate. E.G. if the
    web based main does not include -open as
    its arguments, it is easy.class WebStartSpringboard {
      /** Call web based main unless args include -open. */
      public static void main(String[] args) {
        if (args[0].equals("-open") ) {
          OpenFileBasedClass.main(args);
        } else {
          WebBasedClass.main(args);
    }Other measures might be taken for a situation
    where the web based version does include a
    -open argument.

  • Multiple file associations

    I would like to open NEFs in either Photoshop or Nikon Capture NX2 (depending on the picture). I would like to be able to have Photoshop as my default application, so that if I double-click on the thumbnail, the picture will open in Photoshop. But I would like the option to "open with" NX2. I have been playing with "file type associations," and have not been able to accomplish this. It appears that I have two options:
    Have Photoshop as the default, and not be able to "open with" NX2 -- OR -- have both options to "open with" but with NX2 as the default (so that a double-click will open NX2).
    Is there a way to accomplish what I want? If not, can it be added?
    Thank you?

    I suppose the first option is a way round it, but I have two very definite types of file I'd like to associate my application with, and I'd like to give them a different icon each rather than the same one.
    Also when i include multiple association tags - even with different filetypes and mime-type associations - webstart 6.0 always crashes with the error below. The only change I make is commenting in or out a second assocation tag in my jnlp file, and given the trace below it appears the association tags are the cause, so I don't know if this is just the dtd with an error, it appears to be enforced in the javaws code too.
    java.lang.NullPointerException
         at com.sun.javaws.LocalInstallHandler.promptReplace(Unknown Source)
         at com.sun.javaws.LocalInstallHandler.registerAssociation(Unknown Source)
         at com.sun.javaws.LocalInstallHandler.createAssociations(Unknown Source)
         at com.sun.javaws.LocalInstallHandler.install(Unknown Source)
         at com.sun.javaws.Launcher.notifyLocalInstallHandler(Unknown Source)
         at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • File associations / sandboxed app.

    http://www.1point1c.org/spacesim/spacesim.jnlp
    Points to the launch file for a sandboxed
    application (<150 Kb download) that claims
    (OK suggests) file associations for two
    file types '.sss' (space simulation scenarios)
    & '.sso' (space simulation options).
    ( There are ways to export/create these file types,
    but you can get the default '.sss' file here
    http://www.1point1c.org/spacesim/spacesim-data.zip )
    By claiming the file assocation, the Space Simulator
    needs to provide '-open fileName' functionality in the
    main(), which it does.
    But there is a quirky aspect to it when running
    in Java 1.5 - if the user double clicks a '.sss' file,
    - they are asked ny the plug-in if they want to
    proceed - with the offer to
    |_|   Do not show this advisory again- The user selects that and clicks 'Yes' (open)
    - The GUI appears with the file selected.
    ..But! JWS does not remember that the user
    selected always allow, and asks them again
    (& again, & again..)
    Do you want to allow this action?Is that defined behaviour for a sandboxed
    application?
    Do the full privileges applications behave
    differently (i.e. remember when the user
    selects always allow)?
    Is it just my system/Java version,
    (I'm running Win XP Pro, Java 1.5.0_09)
    does it work on other combinations?

    ...I'm prompted with a dialog to allow the app to
    read the file and I click allow always.
    I then get a file chooser where I have to select the
    file again. I see that as a separate problem.
    Again - I do not know if it is intended behaviour,
    but it makes no sense to force the user to identify
    the file a second time.
    ...Is that part of the app or a webstart
    problem? Incidently, clicking cancel on this file
    chooser puts the app in a state where I need to kill
    it.Oops! Sorry, I had been meaning to fix that.
    ...But I think the always allow means that
    webstart will allow the app to open and read the file
    as many times as the app needs too during the
    execution of the app, not on subsequent
    invocations.At first I was sceptical, but a few further tests*
    seem to support what you are saying.
    * Using the menus within the application that
    also open files, after selecting 'remember
    my decision', at first file 'double-click open', I
    did not get further prompts, though usually
    I do.
    My investigations are continuing, but here it is
    partly complicated by getting different versions
    of web-start depending upon whether I double
    click the desktop launch icon (1.6), or an
    associated file (1.5) - the advisory dialogs
    seems different as well.
    Thanks, I think you have effectively answered
    my question, but I'll mull it over some more..

  • 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.

  • 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

  • Signing\Digital signature on JNLP file

    Hello,
    I have signed my JWS app jar files with a valid certificate (COMODO) and this works fine but the user still receives a warning message that states:
    'Part of the application is missing a digital certificate'.
    Inspecting the warning indicates that the JNLP file isn't signed.
    http://www.broughty.com/images/JNLPSigning.PNG
    My JNLP files are built and streamed on the fly via a servlet.
    It would appear this may be due to the property tags we use and that somehow magically prefixing the property name value with .jnlp or .javaws will help.
    http://docs.oracle.com/javase/tutorial/deployment/doingMoreWithRIA/settingArgsProperties.html
    However this 'prefixing' doesn't seem to work - at least it made no odds to the warning I got when I altered the JNLP creating servlet to generate the reource property tag values with a .jnlp or .javaws prefix.
    There is another old thread on this issue but, as with a lot of threads on here, OTT admin's have locked it with a snarky final comment for posterity.
    I would imagine that a lot of web start apps are signed so how have other people got around this? It isn't a showstopper but I would be happier if at least the JNLP warning could be removed.
    Cheers
    Mat
    p.s has anyone managed to get the 'insert a link' button to work on this forum?

    Assuming that you have actually signed it properly using the private key associated with the COMODO signed certificate then it looks to me as if the COMODO certificate is not trusted so the signature on the jar files cannot be verified. Is the COMODO certificate in the Java trust store?
    P.S. I suspect your "property tags" comments are just a red herring.

Maybe you are looking for

  • Deafult client value while logging into SAP

    Hi, A general question -- How can i change the default client value say '111' to '100' in SAP initial screen while logging in. Regards, pankaj

  • Alternative e mail?

    how can I edit my alternative e mail,from my account?

  • Getting error 'generation failed' when tried to build the CAF application

    Hi All, I have created the webdynpro application for the human activity.I have created CAF Application for automated activity.But when I tried to generate and build the CAF application,I am getting an error 'generation failed-com.sap.engine.services.

  • Installed App Manager, but photoshop won't open

    I installed the app manager, everything went smoothly. When i click on the photoshop icon, nothing happens. No issues with where it's downloaded or anything, and I'm not clicking on the set-up file, it's definitely the actual photoshop designator. Ru

  • WebDynpro Application Deployment Aborted

    Hi, I Have entered the J2ee Engine Details. J2ee Engine is Working Fine.When i Deploy The Application It is Asking for SDM Password and i enter Password. Then its Displaying Deployment Aborted. The error message is:- /userOut/deploy (com.sap.ide.ecli