Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
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
add comment

1 Answer

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
1  
hallelujah, jarfix did it. –  Demiurg Jun 20 '11 at 15:28
2  
If you only knew how I hate windows... –  Demiurg Jun 20 '11 at 15:29
1  
@Demiurg i have a good idea –  admintech Jun 20 '11 at 15:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.