drosenhe

Distinguished
Jan 8, 2015
1
0
18,510
Hi Everyone and thank you for looking at my post and perhaps offering a suggestion.

Much like the tom's Hardware User in this post: https://forums.tomshardware.com/thr...ts-supposed-to-application-not-found.3507945/
I have been using JDiskReport by JGoodies for years without issue.

Recently, the context menu item for JDiskReport stopped working, giving me an "Application not found" error, yet the only change that I can think of that might have affected it is that I recently uninstalled Java, then installed OpenJDK 8 (Temurin).

However, if I double click on the jar file "\jdiskreport-1.4.1.jar", JDiskReport launches just fine, but I have to ask it to browse to the disk drive or folder I want it to examine, so I'd much rather use the context menu as that is much more user friendly.

Has anyone else come across this issue recently or in the near past and were you able to fix the issue?
If so, plz share as "inquiring minds" need to know.

Thanks.
 
Solution
Hi, welcome to the forums!

I have not used JDiskReport but I assume JDiskReport uses Java and when you switched from Java to OpenJDK, the path for the Java's executable file has changed. It still works by double clicking on it is a good sign, meaning that's it compatible with OpenJDK.

Context menu items can run programs / files. The info for the menu items are stored in the registry. It likely still points to the old Java, and needs to be updated to point to the new OpenJDK.

So, for example, your registry current looks like this:
"C:\Program Files\Java\Java.exe" "C:\Folder\jdiskreport.jar"
and now it needs to look like this:
"C:\Program Files\OpenJDK\Java.exe" "C:\Folder\jdiskreport.jar"

So the question is how can...

gardenman

Splendid
Moderator
Hi, welcome to the forums!

I have not used JDiskReport but I assume JDiskReport uses Java and when you switched from Java to OpenJDK, the path for the Java's executable file has changed. It still works by double clicking on it is a good sign, meaning that's it compatible with OpenJDK.

Context menu items can run programs / files. The info for the menu items are stored in the registry. It likely still points to the old Java, and needs to be updated to point to the new OpenJDK.

So, for example, your registry current looks like this:
"C:\Program Files\Java\Java.exe" "C:\Folder\jdiskreport.jar"
and now it needs to look like this:
"C:\Program Files\OpenJDK\Java.exe" "C:\Folder\jdiskreport.jar"

So the question is how can we change it (update it / fix it). While you could directly edit the registry, it's safer to use an app (if one is available). A backup is always recommended before making such changes.

There are several freeware apps that will allow you to edit the Context Menu. I would first try ShellMenuView or ShellExView. Both are available from NirSoft.
https://www.nirsoft.net/utils/shell_menu_view.html
https://www.nirsoft.net/utils/shexview.html
Start with ShellMenuView.

Additional Context menu editors:
https://wethegeek.com/best-context-menu-editors-for-windows/
I have not tried all of these out.

Be sure to use the correct path and filename to the new Java executable.

If you have issues with this or can't figure it out, let me know and I'll try to download it all and test it out and see if I can figure it out for myself first.
 
Solution