3 ms·
Without installation on Windows `Preferences.systemRoot();` writes bunch of log errors in stderr. It tries to create HLKM\Software\JavaSoft\Prefs. Installer cre
by vbezhenar 7y ago
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.
- pron 7y agoWhich version are you using? This could be this issue[1], fixed in 9. [1]: https://bugs.openjdk.java.net/browse/JDK-8139507 https://bugs.openjdk.java.net/browse/JDK-8139507
- deleted 7y ago[deleted]
- vbezhenar 7y agoI checked on latest 12.0.2+10 it's still reproduced.
- pron 7y agoAh, 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.