United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6649371 JNLP Association (per-user) does not work in Vista
JDK-6649371 : JNLP Association (per-user) does not work in Vista

Details
Type:
Bug
Submit Date:
2008-01-11
Status:
Resolved
Updated Date:
2010-09-24
Project Name:
JDK
Resolved Date:
2009-03-09
Component:
deploy
OS:
generic
Sub-Component:
webstart
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u14 (b03)

Related Reports
Backport:

Sub Tasks

Description
JNLP file association does not work in Vista. Registry cannot be created. See comments for tests cases.

                                    

Comments
EVALUATION

to register association , we need to write to HKLM registry branch, which java web start won't have permission to do so on Vista.

Problem exists in older JRE as well, e.g I tested on 6.0

com.sun.deploy.association.RegisterFailedException: Key SOFTWARE\Classes\MIME\Da
tabase\Content Type\application/x-dmt creation error!
        at com.sun.deploy.association.utility.WinRegistryUtil.regCreateKeyEx(Unk
nown Source)
        at com.sun.deploy.association.utility.WinRegistryUtil.addMimeType(Unknow
n Source)
        at com.sun.deploy.association.utility.WinAppAssociationWriter.registerAs
sociation(Unknown Source)
        at com.sun.deploy.association.AssociationService.registerSystemAssociati
on(Unknown Source)
        at com.sun.javaws.WinInstallHandler.registerAssociationInternal(Unknown
Source)
        at com.sun.javaws.LocalInstallHandler.registerAssociation(Unknown Source
)
        at com.sun.javaws.LocalInstallHandler.createAssociations(Unknown Source)
        at com.sun.javaws.LocalInstallHandler.performIntegration(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)

we probably need to use jbroker to create the keys
                                     
2008-04-14
EVALUATION

more investigation show that per-user level association does not require HKLM keys - HKCU is sufficient.

Java Web Start does have enough permission to update HKCU keys in Vista.

Fix in 6u14

system level association is more complex though (HKLM) - will open new bug for that.
                                     
2009-02-18
SUGGESTED FIX

http://web-east.east.sun.com/www/webrevs/ngthomas/6649371/webrev/
                                     
2009-02-19



Hardware and Software, Engineered to Work Together