I’m a (proud?) owner of a Nokia phone and for SMS and Phonebook management I’ve installed the Nokia OVI software. It’s seems to be more flexible than it’s predecessor for sms handling, music and photo synchronization and so on..
but? But it broke my .jar file type association which wouldn’t run anymore with Java, but will be opened by Nokia OVI itself. The only issue posted on Nokia OVI forum didn’t get any reply since October 2009 (see this forum post about JAR issue).
The standard Windows7 file type association won’t work: it doesn’t allow you to set a parameter for the associated program. Even the “assoc” and “ftype” program calls helped.
The solution? Get rid completely of the .jar file association from the Windows registry, and re-associate it! Here are the full steps:
Removing .jar form windows7 registry
Reading a SevenForum post with an howto for Default File Type Associations – Restore for Windows7 I manage to get a registry script to clear the .jar filetype. Copy and paste this snippet into a new text file, and rename it to “somename.reg”, and run it:
Windows Registry Editor Version 5.00
Re-Associate the .jar extension to Java
Then, from another website (from a Computing.net post) I found how to fix and restore the old .jar association, from the command line run:
ftype JARFile="C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1"
If you don’t want to manually write the code and follow all the steps described above, download and extract the attached archive and run the .BAT one (with Administrative rights)!
That’s all folks!