You are not logged in.

#1 2018-06-27 18:38:49

RazeLighter777
Member
Registered: 2018-03-25
Posts: 7

[SOLVED] Use java 8 for minecraft

I am trying to run minecraft on arch linux. I tried also installing it from the AUR package as well as the official launcher on minecraft.net . However, when I start the launcher in both cases, it crashes as soon as I launch a game.

I went to the wiki to troubleshoot, and it said that minecraft may only work with java 8: "Though using a proper package should always be preferred, there is still the options to use the plain minecraft launcher which can be found at the official download page. If you use the manual, official installer, keep in mind you must use Java 8 (such as jre8-openjdk, see Java), as the other versions currently cause a crash."

I have both java 8 and java 10 installed (openjdk, not oracle). But when I launch minecraft with

java -jar Minecraft.jar"

it uses java 10 instead of java 8. I looked online to find a way to specify a specific version of java using this:

java -version:"8" -jar Minecraft.jar

. However, when I run this command, it says that specifying a version is no longer supported.

I do not wish to uninstall java 10, as I need it for a class. Is there another way to specify a specific version of java?

Last edited by RazeLighter777 (2018-06-29 21:08:39)

Offline

#2 2018-06-27 18:40:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,321
Website

Re: [SOLVED] Use java 8 for minecraft


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2018-06-27 18:45:29

RazeLighter777
Member
Registered: 2018-03-25
Posts: 7

Re: [SOLVED] Use java 8 for minecraft

Thank you. I apologize for not looking there. For anyone wondering how, you can use

 archlinux-java set <version> 

to change your java version.

Offline

#4 2018-06-27 19:57:45

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,360
Website

Re: [SOLVED] Use java 8 for minecraft

Please remember to mark your thread as solved by editing your first post and amending the topic title.

https://wiki.archlinux.org/index.php/Co … ow_to_post


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2018-06-27 20:10:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,321
Website

Re: [SOLVED] Use java 8 for minecraft

That will work - but I was thinking you'd want to read down to this part:

https://wiki.archlinux.org/index.php/Ja … va_version

If you're ok with jre8 being the default for everything, then yes, just change it.  But if you want to keep jre10 as the default but use jre8 for minecraft, you can do that too.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB