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
minecraft: fix JAVA_HOME #106065
minecraft: fix JAVA_HOME #106065
Conversation
JAVA_HOME should point to the root directory of the JRE, not the `bin` folder.
What's the motivation for this? Was there a problem without this patch? |
Actually it seems that I can run minecraft without the |
When launching Minecraft through the
When I removed the
With no java installed globally on my system, the |
Hm I can't reproduce this. For the parent commit of this PR (336fd62) I can build and run minecraft without problems:
In the launcher, I hit "Play" with the latest version, which runs just fine, and I don't have any java installed globally. Can you confirm that you tested with the exact same store path? If you get different behavior, something weird is going on. Also, let's compare
|
That version works for me too.
|
Building from
Did you by any chance have set a java runtime in the minecraft launcher, for the minecraft version you run? I confirmed by issue with a clean system (no
Sure. With
Besides the point that for me the launcher is broken without a correct |
I also can't reproduce this issue, with a clean $HOME (no .minecraft) and no java on the system. And I confirm that it runs for me without JAVA_HOME set. Digging some more, I see that this was introduced in a8edf35, and from the commit log it looks like it was added to improve purity, not because it was needed. |
Been doing some more investigation on this. Normally I run minecraft in a sandbox (with Sorry for not testing it unsandboxed before, I could have figured this out earlier.
Agreed. For purity the patch makes sense. As a bonus for me it runs in a sandbox with this patch too :) Again sorry for not realizing this earlier on. Thank you all for helping trace this in the end. |
JAVA_HOME should point to the root directory of the JRE, not the
bin
folder.Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)