You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
Not everyone using the vanilla launcher will have a JDK installed. The launcher provides the Microsoft OpenJDK build to the launcher, so we should utilize this if needed.
How it could be implemented
This can be piped into the get_java() function.
On 64-bit Windows, the Java executable is usually at C:\Program Files (x86)\Minecraft Launcher\runtime\java-runtime-gamma\windows-x64\java-runtime-{version}\bin\javaw.exe. For {version}: java-runtime-alpha is Java 16, java-runtime-beta is 17.0.1 and java-runtime-gamma is 17.0.3. java-legacy is Java 8.
On 32-bit Windows, same as 64-bit but it's C:/Program Files instead of Program Files (x86).
I'm not sure where it's stored on macOS or Linux.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Alright, this should have been implemented in #37. Of course, I can't test it as my Adoptium JDK would be found by the script ($JAVA_HOME) and I don't really want to go unset those variables lol. Would appreciate some testers ❤️
32-bit Windows isn't supported, as the current sys.platform implementation doesn't support detecting the architecture, according to the docs. The platform module can detect the architecture, however Steam's hardware survey doesn't even list it under OS. On the macOS side, as long as the launcher downloads an arm64 JRE and that doesn't fall under a different path (which I doubt), it won't be a problem with new Apple Silicon. If it ends up being one, I will implement a system for that - because I've seen a good number of people showing off or asking for help in the FO discord on an M1 or M2-based chip.
Until we get some testing, I'm not going to close this issue because I can't be sure if it works or not.
That all needed libraries are installed is really important, of course.
After all, any imported modules would just throw an error if they weren't found. pip should download them, binaries include them, scripts would install them - so I wouldn't think this is much of a concern.
Code of Conduct
Potential Enhancement
Not everyone using the vanilla launcher will have a JDK installed. The launcher provides the Microsoft OpenJDK build to the launcher, so we should utilize this if needed.
How it could be implemented
This can be piped into the
get_java()
function.On 64-bit Windows, the Java executable is usually at
C:\Program Files (x86)\Minecraft Launcher\runtime\java-runtime-gamma\windows-x64\java-runtime-{version}\bin\javaw.exe
. For{version}
:java-runtime-alpha
is Java 16,java-runtime-beta
is 17.0.1 andjava-runtime-gamma
is 17.0.3.java-legacy
is Java 8.On 32-bit Windows, same as 64-bit but it's
C:/Program Files
instead of Program Files (x86).I'm not sure where it's stored on macOS or Linux.
Anything else?
No response
The text was updated successfully, but these errors were encountered: