Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On first run, ImageJ.exe on Windows tries to access registry key with "All Access" where read access would be sufficient #86

Open
Sethur opened this issue Nov 12, 2019 · 1 comment

Comments

@Sethur
Copy link

Sethur commented Nov 12, 2019

OS: Windows 10
Java Version: Oracle JRE 1.8.0_221

When using a fresh, non-JRE-bundled install of ImageJ1 1.52d from https://imagej.nih.gov/ij/download.html , ImageJ.exe first tries to locate a JVM in the registry. To do this, the key "HKLM\SOFTWARE\WOW6432Node\JavaSoft\Java Runtime Environment" is accessed (I have a JAVA_HOME environment variable set as well, but this seems to be ignored).

For security reasons, the registry key "HKLM\SOFTWARE\WOW6432Node\JavaSoft\Java Runtime Environment" is not writable for default users on my system. ImageJ.exe, however, requests full permissions when accessing this key, which leads to the system denying the access alltogether and Imagej.exe subsequently not finding the JVM.

This registry access should be changed to a pure read request. Also, the environment variable JAVA_HOME should be taken into account if no registry entry is found.

@Sethur
Copy link
Author

Sethur commented Nov 12, 2019

Bonus material: Screenshot of procmon:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant