Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
C:\Windows\system32>assoc .jar
File association not found for extension .jar

C:\Windows\system32>ftype jarfile
File type 'jarfile' not found or no open command associated with it.

When I double click on .jar file I get "Could not find the main class" error indicating that there is a wrong association. Why is that?

share|improve this question
Is this correct "assoc .jar"? Is there really a space between oc and .jar? – slotishtype Jun 20 '11 at 15:06
OK Sorry, I misunderstood. – slotishtype Jun 20 '11 at 15:13
I managed to delete it by removing everything containing the text .jar from the registry. Now I have a different problem - the correct association set with assoc and ftype does not work. I HATE WINDOWS! – Demiurg Jun 20 '11 at 15:22
up vote 2 down vote accepted

Go to Control Panel, Add Remove Programs, chances are pretty good you will see multiple versions of Java(TM). Older versions do not play well with latest update. Remove older versions and retest

EDIT - In that case i suggest downloading JarFix

A solution to restore the .jar file association to the Java Runtime Environment

share|improve this answer
No older versions. I do have both JRE and JDK, but this is hardly relevant... – Demiurg Jun 20 '11 at 15:14
hallelujah, jarfix did it. – Demiurg Jun 20 '11 at 15:28
If you only knew how I hate windows... – Demiurg Jun 20 '11 at 15:29
@Demiurg i have a good idea – admintech Jun 20 '11 at 15:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .