If you cannot associate a file extension to an application in Windows 11/10, and see an error message The program you selected cannot be associated with this file type, then this post may be able to help you resolve the issue.
The program you selected cannot be associated with this file type
Cannot associate File Type with Program in Windows
Open regedit and navigate to:
Computer\HKEY_CLASSES_ROOT\Applications
Here, find the .exe name, which is creating problems
Expand it and navigate it to:
Shell > Open > Command.
Double-click on it and ensure that the application location points to the actual location of the executable file in the value data field.
Exit the Registry Editor.
Now associate the file type for this particular extension and see if it helps.
Our freeware File Association Fixer for Windows should also interest some of you.
How to fix This file does not have an app associated with it for performing this action?
Generally speaking, to fix the This file does not have an app associated with it error on Windows, right-click the file and select ‘Open with’ to choose the appropriate program. Alternatively, navigate to ‘Default Apps’ in Settings to set default programs for file types. Ensuring the correct application is set to open your file type often resolves this issue.
TIP: This post will help you if you cannot change the default app by File Type and this one will show you how to reset all File Associations to default in Windows.
How to fix This file does not have a program associated with it?
To fix This file does not have a program associated with it error go to your system’s settings and assign a default program to the specific file type. This tells your computer which application to use when opening files of that format, instantly fixing the association error.
How do I force a file to open with a specific program?
To force a file to open with a specific program on a desktop, right-click the file and choose ‘Open with’ from the context menu. Then, select your preferred software. If the program isn’t listed, click ‘Choose another app’ and find it on your computer or set it as the default.
The information (above) is correct, good information, but, for the benefit of those who will run into a problem with .zip file association the fix can be more extensive, because of how Microsoft handles .zip files within the Operating System. Please add more info relative to .zip file association.
i am facing a different problem, i have small applications with .jar extension which used to work fine till i installed nokia pc suite the pc suite has associated the .jar files as mobile applications. can anybody help me to to run the .jar applications as earlier
^ Pls re-associate your .jar file extn with WinRAR or your compression utility. Relevant links mentioned above.
This saved my day!! Pdf association did not work and I just could not fix it, now it works like a charm! thanks so much
Thanks a lot! You prevented me from take myself a shot in the head
Great help! This solved my problem. I recognized that the registry key pointed to the previous location of the executable before I manually moved it to another folder. Thanks much!
thans very much buddy!!!
thanks heaps
I understand that this is an old post, but I answer here as reference to anyone who happened upon & reads through this thread. To “run” your JAR files with Java as originally setup, see either:
JAR_Runner
http://download.cnet.com/JAR_Runner/3000-2094_4-76475806.html
OR
JARFix:
http://johann.loefflmann.net/en/software/jarfix/index.html