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

Java discovery from Windows registry #28

Open
ctrueden opened this issue Feb 1, 2024 · 0 comments
Open

Java discovery from Windows registry #28

ctrueden opened this issue Feb 1, 2024 · 0 comments

Comments

@ctrueden
Copy link
Member

ctrueden commented Feb 1, 2024

The ImageJ Launcher checks the Windows registry for Java installations. Migrating this code to Jaunch Kotlin would be feasible. Should we do it? Slick would be to support reading from the registry via the same variable syntax. But to do the needed level of indirection might require adding a new TOML section—maybe:

vars = [
	'winregCurrentVersion|HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion',
	'winregJavaHome|HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\${winregCurrentVersion}\JavaHome',
]

Kinda hacky for this one feature...

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

No branches or pull requests

1 participant