New comment by dexgs on void-packages repository https://github.com/void-linux/void-packages/pull/39683#issuecomment-1267454389 Comment: Yes, it will re-export its value, but if it's unset it will try to detect the system's default jdk and use that. If it *is* set, no detection happens and it just uses the value you give it. This is desirable because intellij will not work if you try to run it with the openjdk.