News for hackers. Stuff that matters.
Re:AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries by vbezhenar on Wednesday August 21, 2019 @03:49PM (#20760946)
Without installation on Windows `Preferences.systemRoot();` writes bunch of log errors in stderr. It tries to create HLKM\Software\JavaSoft\Prefs. Installer creates that registry node, so it works just fine after that. I don't know if it's a bug or intended behaviour.
Re:AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries by pron on Thursday August 22, 2019 @07:26AM (#20766858)
Which version are you using? This could be this issue[1], fixed in 9.

[1]: https://bugs.openjdk.java.net/browse/JDK-8139507

Re:AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries by vbezhenar on Thursday August 22, 2019 @08:17AM (#20767191)
I checked on latest 12.0.2+10 it's still reproduced.
Re:AdoptOpenJDK: Open-source, prebuilt OpenJDK binaries by pron on Thursday August 22, 2019 @09:08AM (#20767586)
Ah, creating the root node requires admin privileges. If you're distributing an application, you'll need your application's installer to run as admin and create the root node. Consider if that is what you really want, but it does require your users to run something as admin. This does not justify installing the JDK, as your users wouldn't (or shouldn't) do that, anyway.