For any other program I would right click on the file >> Open With >> Choose Default Program, and then I would browse and find the program and then it would appear on the list and I would click it and make sure the "Always use this program to open this kind of file" option is checked and hit ok.
However, for netbeans after I find the netbeans exe launcher file and go back to the screen where it should then be an option to select, it doesn't show up. So I can't associate any file types with netbeans.
You can imagine how frustrating it is to have to open netbeans first and then drag and drop the file I want to work on. I can never double click and start working and I work with script and html files all day.
I'm using Netbeans 7.0.1 on Windows 7 OS.
Just found the solution.
Open Regedit (start->run->regedit)
Navigate to "HKEY_CLASSES_ROOT"
Navigate to "Applications"
Navigate to "netbeans.exe"
Expand the subfolder: "shell" and then the subfolder "open" Then click on the final folder named "command".
In the right hand side you will see a (Default) key you need to "Modify" by right clicking.
Change the location of the file to your new version of Netbeans.. Mine was pointing to the 7.0 version, and now I have 7.1beta so it was broken.
I changed mine too :
"C:\Program Files\NetBeans 7.1 Beta\bin\netbeans.exe" "%1" (with the quotes)
Now Netbeans should show up in the file associations list.
Thanks and good luck
None of the above solutions worked for me. What did help in my case was deleting the whole key: HKEY_CLASSES_ROOT/Applications/netbeans.exe/
from Windows registry.
Now after selecting netbeans.exe
in Choose Default Program
dialogue Netbeans properly appears in a list of programs and I can make it a default PHP "opener".
My solution was inspired by comment to this Netbeans bug report
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With