-
Notifications
You must be signed in to change notification settings - Fork 92
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
Adding Java path to registry #119
Comments
When you install adoptjdk on the official website these regkey are created adopt8-openj9 [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8]
"JavaHome"="c:\Users\MyUser\scoop\apps\adopt8-openj9\current"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\8.0.252.09]
"JavaHome"="c:\Users\MyUser\scoop\apps\adopt8-openj9\current" adopt11-openj9 [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK\11]
"JavaHome"="c:\Users\MyUser\scoop\apps\adopt11-openj9\current"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK\11.0.7.10]
"JavaHome"="c:\Users\MyUser\scoop\apps\adopt11-openj9\current" |
Thank you. My own findings were that you don't need the full version as a regkey, but just the major version. But I have not been able to test it enough to implement it yet. There are a couple of other issues too:
|
@se35710 |
If I want to execute a .jar file with JDK or JRE installed from scoop, there is no file assosiation and, if you try to execute it by java it wont work as .jar needs "javaw -jar ffilename.jar". |
Since this issue is still open I'll post .reg file for other to fix file association:
|
Some applications, such as Keystore Explorer[extras/keystore-explorer] and Minecraft[games/minecraft], checks Java installation through registry.
Therefore when user installs JRE through Scoop, these applications will report "Java is required" even if JRE is already installed.
The problem can be fixed by importing the content below. This can be implemented by following the pattern of VSCode package. vscode.json / vscode-install-context.reg
(I am not an expert, so I am not really sure about whether this should be added to all JRE/JDK packages.)
The text was updated successfully, but these errors were encountered: