JDK-6301263 : Take back a stolen .jar association on Windows
  • Type: Enhancement
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 5.0u4
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2005-07-25
  • Updated: 2010-07-29
  • Resolved: 2005-07-28
Related Reports
Duplicate :  
Description
On Windows, we already support the .jar association during installation of the JRE.
However, particular 3rd party software (primarily pack programs) can steal the .jar association even if .jar is already associated with javaw.

If you double-click a jar file that does contain a "Main-Class" attribute in the manifest
and the .jar association has been stolen, then the jar is opened by a different program rather then the program is executed by javaw.

There are at least two ways to restore the original .jar association.

Manually:
* At the Java Control Panel the user could click on a button to restore
the original .jar association.

Automatically:
* If we detect a .jar association misconfiguration during java update (for example), we can also inform the user about the problem and give her/him also an option to fix it.

Comments
EVALUATION Adding a new setting option under "Advanced" tab of Java Control Panel might be ok. It will need X team to approve the UI change.
26-07-2005

EVALUATION Not a java/jar issue. Redirecting to java_deployment/desktop. The deployment team should have a better idea of where this bug belongs.
25-07-2005

WORK AROUND Reinstall the JRE or fix the Windows Registry manually.
25-07-2005