prompted Bing in compose mode with
installing minecraft java edition on risc-v sbc visionfive 2
and this is the result
How to Install Minecraft Java Edition on RISC-V SBC VisionFive 2
Minecraft is one of the most popular sandbox games in the world, with millions of players across different platforms. Minecraft Java Edition is the original version of the game, which runs on any computer that supports Java. However, if you want to play Minecraft on a RISC-V single-board computer (SBC) like VisionFive 2, you will need some extra steps to make it work.
RISC-V is an open-source instruction set architecture (ISA) that can be implemented by anyone without paying royalties or fees. RISC-V offers many advantages over other ISAs, such as modularity, scalability, and efficiency. VisionFive 2 is a powerful RISC-V SBC that features a quad-core processor, 8GB of RAM, and a Mali-G52 GPU. It can run Linux and Android operating systems and supports various peripherals and expansion modules.
To install Minecraft Java Edition on VisionFive 2, you will need to follow these steps:
- Download and install OpenJDK 16 for RISC-V from this link: https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16%2B36/OpenJDK16U-jdk_riscv64_linux_hotspot_16_36.tar.gz
- Extract the tar.gz file to a folder of your choice and set the JAVA_HOME environment variable to point to it.
- Download and install LWJGL 3 for RISC-V from this link: https://github.com/LWJGL/lwjgl3/releases/download/3.3.0/lwjgl-3.3.0.zip
- Extract the zip file to a folder of your choice and set the LWJGL_HOME environment variable to point to it.
- Download and install Minecraft Launcher for Linux from this link: https://launcher.mojang.com/download/Minecraft.deb
- Install the deb file using sudo dpkg -i Minecraft.deb
- Run Minecraft Launcher from your applications menu or terminal and log in with your Mojang account.
- Edit your installation settings and add these JVM arguments: -Dorg.lwjgl.librarypath=$LWJGL_HOME/native/linux -Dorg.lwjgl.system.jni.nativespath=$LWJGL_HOME/native/linux
- Save your settings and launch Minecraft Java Edition.
You should now be able to play Minecraft Java Edition on your VisionFive 2 SBC with decent performance and graphics quality. Enjoy!
Impressive. Incorrect, but sounds good.
step 1: the riscv64 openjdk download link does not exist 🙁. There ARE riscv64 java versions, including one directly from the debian repos, but it missed that.
step 3: talks about the minecraft launcher, try it and:
sudo dpkg -i Minecraft.deb
dpkg: error processing archive Minecraft.deb (--install):
package architecture (amd64) does not match system (riscv64)
Errors were encountered while processing:
what actually worked?
Minecraft Java Edition Server runs on the VisionFive 2
Configured to run, along with an old windows 10 machine.
on the windows 10 machine, start the minecraft launcher, (need an account) and download the server.jar, by going to the installations tab, click “New installation”, and click the down arrow next to SERVER:
you then need to copy the
server.jar to the visionfive 2
On the visionfive 2
sudo apt install openjdk-21-jre-headless
- copy the server.jar to minecraft_server dir
will need to accept eula by editing eula.txt; simplest way is to run the server twice:
java -jar server.jar
- will stop with message, edit the
eula.txtand set to
trueand rerun the server
java -jar server.jar
then connect from the windows machine, with the IP of the visionfive 2.
notes. above java command just uses defaults; if you want to give more memory, you can with
java -Xmx4096M -Xms2048M -jar server.jar
this is not a fast machine, will see errors like
[13:59:15] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2469ms or 49 ticks behind
so not for any major games, but useful to try it out. Similar to a raspberry pi, so all the “tweaks” from that will also work