.jar association



  • I am requesting the same thing (see below) for .jar.
    http://www.powerarchiver.com/forums/showthread.php?t=4238

    If PA is uninstalled (or association is cancelled), double-clicking a jar file no longer launches the java program, since the relevant registry entries are not restored.

    For those who need the jar association back, here’s the registry entries you need.

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\.jar]
    @="jarfile"
    
    [HKEY_CLASSES_ROOT\jarfile]
    @="Executable Jar File"
    
    [HKEY_CLASSES_ROOT\jarfile\DefaultIcon]
    @="C:\\Program Files\\Java\\jre6\\bin\\javaw.exe,0"
    
    [HKEY_CLASSES_ROOT\jarfile\shell]
    
    [HKEY_CLASSES_ROOT\jarfile\shell\open]
    
    [HKEY_CLASSES_ROOT\jarfile\shell\open\command]
    @="\"C:\\Program Files\\Java\\jre6\\bin\\javaw.exe\" -jar \"%1\" %*"
    
    

  • conexware

    what if you do not have java installed or if it is installed in different folder?



  • Good question.

    Like denzilla said in the above topic, is it possible to take note of the current registry entries and restore them?

    If java is missing, no harm is done.


  • conexware

    current as in when powerarchiver was installed?
    PA does not associate with jar for that reason (so it would not break java association)…



  • @spwolf:

    current as in when powerarchiver was installed?…

    Yikes, don’t do that (for any filetypes) - I’ve had PA installed for years now (and still counting) 😃



  • @spwolf:

    PA does not associate with jar for that reason (so it would not break java association)…

    There is the “Select All” button in Configuration > Files Formats. It was too temping, so I pressed 😞

    Maybe just displaying a warning is enough?


 

6
Online

9.8k
Users

6.0k
Topics

36.8k
Posts