Bing fails to install Minecraft on VisionFive 2

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:

  1. Download and install OpenJDK 16 for RISC-V from this link:
  2. Extract the tar.gz file to a folder of your choice and set the JAVA_HOME environment variable to point to it.
  3. Download and install LWJGL 3 for RISC-V from this link:
  4. Extract the zip file to a folder of your choice and set the LWJGL_HOME environment variable to point to it.
  5. Download and install Minecraft Launcher for Linux from this link:
  6. Install the deb file using sudo dpkg -i Minecraft.deb
  7. Run Minecraft Launcher from your applications menu or terminal and log in with your Mojang account.
  8. 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
  9. 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
  • mkdir minecraft_server
  • cd minecraft_server
  • 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.txt and set to true and 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

This entry was posted in risc-v, tech. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s