In Windows 7, the Java Control Panel icon may be damaged / corrupted. Attempting to launch the icon results in "Explorer.exe : Application not found". Note the generic icon:
When working properly, the circled icon should look like this:
This problem appears to be an artifact from previous JRE installations and Sun's installation routines were flawed.
Re-installing JRE (the Java Runtime Environment) does not resolve the problem.
Immediate workaround:
If needed, the Java Control Panel can be manually launched using this location:
C:\Program Files (x86)\Java\JRE6\bin\Javacpl.exe
As a side note, when launching, other-mouse-click the .exe and choose "Run as Administrator". Running as Administrator resolves a bug where changes in the Control Panel (especially Auto-update changes) do not stick. This is true even when the icon is working properly. Sun/Java is aware of this issue.
Permanent Solution:
To fix this problem, you need to know the name of the executable that drives the Java Control Panel. Often, control panel icons are not obvious about the name of the program. Follow these steps to determine the .exe name. If you already know the name of the executable, from above, skip to step 1. (e.g. Program Files (x86)\Java\JRE6\bin\Javacpl.exe)
A. Determine the name of the program.
In the Control Panel,"Other-mouse-click" (right click) the failed icon
Click "Create Shortcut".
The shortcut will be placed on the desktop, with no message or other prompts.
B. Locate the new Desktop icon.
"Other-mouse-click"
Choose "Properties"
Note: In this case, the Java Control Panel icon's name will be similar to 'Control Panel\All Control Panel Items\Java' -- which is not an actual executable name and is not very useful. Most Control Panel icons will not display the target-path and the true name is hidden in the registry.
C. Discover the actual path by clicking "Change Icon".
If the underlying executable is corrupted or missing, the displayed error message will show the actual path. For example, the Java Control Panel reports "Windows can't find the file C:\Program Files\Java\JRE6\bin\javacpl.exe".
Note the path and filename. Use this to find the registry value in the next step.
Removing the Control Panel Icon:
Assuming you know the path to the Control Panel's icon (see steps above), use Regedit to fix the malfunctioning key. As always, exercise care when editing the registry:
1. Launch the Windows Registry Editor with a Start, Run, "Regedit.exe"
See this article for how to expose the Windows 7 Run command.
2. Position the cursor at the top of the Registry tree.
3. Type Ctrl-F (find) and search for the executable's name. When searching, use a partial path, not the full name.
For example, the actual (fully-qualified path name is : C:\Program Files\Java\JRE6\bin\javacpl.exe). In this case, search for this:
"\bin\javacpl.exe" (no quotes)
Searching for a partial string avoids problems with 'Program Files (x86)' vs "Program Files" or 'JRE5', etc..
4. Expected Find Results:
For the Java Control Panel, expect to find this registry key GUID. Be sure this key is within "HKEY_Classes_Root\CSLID" and not in another location in the registry:
HKEY_Classes_Root\CLSID\{4299124F-F2C3-41b4-9C73-9236B2AD0E8F}
Confirm by opening the key; you will see javacpl.exe lurking within.
5. Delete the top-folder {4299124f...E8F} and all items within.
Do not delete the CSLID folder.
Close Regedit.
If the "MuiCache" or "Wow6432Node" key is found, you overshot the CSLID key. Confirm you started the search at the top of the tree. If you still cannot find the key, do not continue with the rest of this article.
Test the results:
Close and re-open the Windows Control Panel.
The 'generic' Java icon should be replaced with a properly-formed Java icon and the control panel icon should behave properly.
If the control panel still mis-behaves, consider re-installing the JRE or see the registry-merge below.
The Correct Registry Key:
The above steps should resolve the conflict and no further action is required. For documentation, here is the correct key (with JRE6). Note the key has the same GUID and it should *not* be deleted:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{4299124F-F2C3-41b4-9C73-9236B2AD0E8F}]
@="Java"
"System.ControlPanel.Category"="8"
"InfoTip"="@C:\\Program Files (x86)\\Java\\jre6\\bin\\javacpl.exe,-2"
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{4299124F-F2C3-41b4-9C73-9236B2AD0E8F}\DefaultIcon]
@="C:\\Program Files (x86)\\Java\\jre6\\bin\\javacpl.exe"
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{4299124F-F2C3-41b4-9C73-9236B2AD0E8F}\Shell]
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{4299124F-F2C3-41b4-9C73-9236B2AD0E8F}\Shell\Open]
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{4299124F-F2C3-41b4-9C73-9236B2AD0E8F}\Shell\Open\Command]
@="C:\\Program Files (x86)\\Java\\jre6\\bin\\javacpl.exe"
Other Control Panel Icons:
If you are searching for other non-Java Control Panel icon problems, this registry key may be of interest:
HKLM\Software\Microsoft\Windows\CurrentVersion\Control Panel\CPLs.
Be aware the Java Control Panel does not live in this location. Only a few system control panels live here but I could imagine other vendors sticking something in here.
Your unregistered comments on this article are welcome.
Related articles:
Streamline Windows 7 Start Menus
Turn off UAC Nags on Start Menu Items
Recommended Win7 Explorer Changes
Related Links:
I have not used this utility, but in the event of a complete java failure, this link may be of interest: Completely uninstall all Java using a beta product called JavaRA:
Keywords:
Java control panel, java.cpl, javacpl.exe, JRE
Thanks, great post! I had a problem with the paths in the registry keys because I moved my installation. Thanks to this I was able to manually edit the paths in the registry and get things to normal again!
ReplyDeleteThank you so much!!! I prayed and got to this site and it worked.
ReplyDeleteThanks so much for your help but one thing, The Java icon is just a piece of paper with no words and I can't click on it or delete it. please help me.
ReplyDeleteAnnon with a paper icon: I believe the article addresses this problem. Try it.
ReplyDeleteHi, I did the above steps in deleting the specified string in the Windows Registry. Although I have reinstalled my Java again, instead of not functioning properly, my Java icon has now totally disappeared from my Control Panel. Help!!
ReplyDeleteThe author writes to Anna:
ReplyDeleteIt couldn't hurt to merge the registry file, listed above. Do the following.
1. Launch Notepad.exe.
2. From this blog, copy the Registry Key into the Notepad document.
3. If needed, edit the REG file, various lines, changing the path to where you installed java. The file above has the default path, so only change if you installed in an unusual directory.
4. Save-AS "C:\Windows\Java.reg" (use quotes)
5. Start, RUN "C:\Windows\Java.reg"
See this article if you can't find the Start RUN command: http://keyliner.blogspot.com/2009/11/windows-7-exposing-run-command.html
6. Reboot to confirm the changes.
Hi,
ReplyDeletethis trick worked for me. Environment Windows 7 64bit
Hi could you help me? I deleted the folder that was named {4299124f...E8F} but I don't see the old java icon in the control panel and I still can't download the new version. I hope I didn't screw my computer up.
DeleteAnon's Delete: Just re-install Java or merge the registry-key listed at the bottom of my article.
ReplyDeleteOk Tim R. Wolf I have installed my java on that directory F:\Program Files\Java . Now how to retrieve the Registry Key for that directory.
ReplyDeleteVictorRRTolkin:
ReplyDeleteUnsure what you are asking.
If you found the registry key, steps 1-5, above, and removed the "old" (bad) key, the existing Java install should have worked with no issues. In my experience, you did not need to re-install Java -- and no additional registry work is needed. I don't understand your comment to 'retrieve the registry key for that directory'.
In the article, the "Corrected" registry key should not be needed and it was included only as documentation to show how it looked if all the installs were correct. If you chose to re-install Java, it should have built that key, with no other actions on your part.
If, by chance, you decided to manually merge my documented "Corrected" key, you would have to edit the file, replacing all references of "C:\" with "F:\" before merging.
The point of this article was to fix the "bad" control panel icon; not to fix other install problems.
Another thought: Drive F: is unusual. If it is a server drive, Java may freak-out. I would think the drive would have to be local and always available. But then again, you may have a boat-load of drives, and that would be okay.
Thank you for the valuable post! I have the same problem, but the solution didn't work after the step "5. Delete the top-folder {4299124f...E8F} and all items within." No Java icon re-appear in the control panel.
ReplyDeleteCould you explain more in detail why deleting the key would make the control panel icon behave properly?
Or, would it better to change the values (paths) inside this key?