Conversation
fix a bug when downloading jre.
|
However, there are still some bugs. The JRE downloaded by the script is broken in my raspberry pi while the JRE I download from the link manually work perfectly. |
|
Hey zqigolden, Thanks for fixing the link! I thought of a way that should fix your problem as well as the problem of people having outdated JREs. Basically now it checks like this: This check before Java is installed basically tests it to see if it returns less than OpenJDK 18 (it should return nothing which would be less than 18 when it's broken) it will completely remove the jre folder and pretend like it never existed. If they have an older working OpenJDK install it will remove it and upgrade them to 18 without them having to fight with the folder itself anymore. Can you try installing with the latest one and see if it can fix that broken jre install? If you've already manually fixed it then that is fine as it should be addressed here! |
|
Hi, I tried to install the new version again from scratch. And everything worked without any issues! The other bug I mentioned is because of the "AllowLocalCopy" variable (I didn't notice that when debugging locally). You can just ignore that. |
|
No worries at all, I'm glad you were able to navigate through them well enough! I actually ended up making this even more robust and have it remove and reinstall the jre folder each time SetupMinecraft.sh is ran. This was with the idea that generally people will run it on Minecraft version updates and that gives a chance to keep the jre up to date so they aren't exposed to security vulnerabilities from ancient JRE binaries and will generally keep them updated and safe. This change will also just wipe out anything weird that might happen during an install due to intermittent network issues, strange flukes, shenanigans and whatnot. Each time they run the SetupMinecraft.sh they'll get a fresh start which would have helped with your situation too for sure. Thanks for reporting this! |
Fix a bug to download the correct arm JRE.