Windows7 .jar file association broken with Nokia OVI

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 post) I found how to fix and restore the old .jar association, from the command line run:

  • assoc .jar=JARFile
  • 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! 🙂

Nokia OVI JAR extension fix (v.2)
Filename : ( )
Caption : Nokia OVI JAR extension fix (v.2)

32 thoughts on “Windows7 .jar file association broken with Nokia OVI

  1. Thanks for the help, problem solved 🙂
    For those running 64 bit, dont forget to change the command in the re-association part to
    ftype JARFile=”C:\Program Files (x86)\Java\jre6\bin\javaw.exe” -jar “%1”

  2. You’re welcome Laura (R U Italian?) 🙂
    Spread the word!

  3. nokia adds its extension as .JAR on my x64 win7, and the regedit is case sensitive.
    so the reg file should read:

    Windows Registry Editor Version 5.00

  4. and as for the bat file, it could check if it is x64, too 🙂

    assoc .jar=JARFile

    If “%ProgramFiles(x86)%” == “” (
    ftype JARFile=”C:\Program Files\Java\jre6\bin\javaw.exe” -jar “%1”
    ) ELSE (
    ftype JARFile=”C:\Program Files (x86)\Java\jre6\bin\javaw.exe” -jar “%1″


  5. Many thanks! The batch file worked for me (W7 32bit).

    Users who have a different version of Java will need to check the path to javaw.exe and change ‘\jre6\’.

    Alan (UK)

  6. worked perfectly.
    Many thanks to author.
    those who r using earlier version of java don’t forget to change the path in the last step (ftype JARFile)
    for editing you can simply open with notepad

  7. Thank you for the useful post, I always come back to this page whenever I update OVI Suite and the damn thing modifies the .jar file association! 🙂

  8. I have the Ovi suite installed and was trying to install the HP Touchpad WebOS Quick Install for homebrewing and get past the first step of running the WebOSQuickInstall-4.3.1.jar file.

    You batch files worked in seconds and got my Win 7 64 bit to proper open the jar file and install WebOS Quick Install.

    Thank you! Thank you! Thank you!

  9. Hi there,

    I have the same problem with Ovi suite over writing my .jar file association.

    I ran the above attached batch file but no joy… I don’t have any experience changing registry files, can anybody help…?

    Many thanks


  10. With your smool batch file I’ve solved my problem!!! Now I can launch this java applications that would’nt start (Mixshare Rapid Evolution 3). Thank you so much.

  11. Thanks so much man , i was installing ant uninstalling the java 10 times today . You`re the best !

  12. you are the best 😀 … i was about to make something like that myself, but that was awesome 🙂
    really works!

  13. Thank you guy. You also helped me here in Brazil. I was looking for this solution aroud here but I did’nt find. I coul’d not translate everything, but enough to understand. Thank you very much!

  14. De nada Bruno! If you send me a Portuguese translation, I’ll add it ASAP! 🙂
    Greetings from Spain 😉

  15. Thanks. Batch resolved problem (Caused by Nokia PC Suite which hijacked .jar-extension and ProjectX stopped working) in Windows XP.

    Nokia Ovi/PC Suite also “steals” codecs, in my case avc main and high profile videos stopped showing in KMPlayer and Subtitle Workshop, only baseline profile avc videos continued to work after installing Nokia PC Suite. I had to disable “emuzed” codecs to solve that problem. When installing nokia it did not ask if it should hijack everything on my PC or not. What a piece of…!

  16. Thank you for you post!

    If you set in your PATH variable, path to bin directory of JRE, you can set path in ftype without full path, like:

    ftype JARFile=”javaw.exe” -jar “%1”

    For example, this trick useful when you need to change jre version between 6 and 7. You change only PATH variable, and jar association auto-changing for correct JRE path.

  17. jarfile=”C:\Program Files (x86)\Java\jre6\bin\javaw.exe” -jar “%1” %*

    note the %* at the end.

  18. Thanks my java projects are alright after ovi install thanks!

Comments are closed.