How to play Minecraft on the VisionFive 2

Here’s a step by step guide of how to play Minecraft on the VF2, adapted from

Install Prism Launcher

The Prism launcher will help us handle the Minecraft installation.

git clone --recursive
cd PrismLauncher

Now install the prerequisite packages:

sudo apt update
sudo apt install qt6-base-dev qtchooser qt6-base-dev-tools libqt6core6 libqt6core5compat6-dev libqt6network6 cmake ninja-build extra-cmake-modules zlib1g-dev openjdk-19-jdk

Compile Prism Launcher:

cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/local" -DENABLE_LTO=ON
cmake --build build
sudo cmake --install build

Download Minecraft

Now, launch Prism Launcher and add a new Minecraft instance. Choose the latest version (1.20.1 for me) and launch it. Prism will ask you to log in with an account, so do that!

If Minecraft is running now, stop it.

Install LWJGL

Now we need to get a native version LWJGL3 because Minecraft doesn’t have a RISC-V version yet. I have a fork of a PR that makes LWJGL buildable on RISC-V, so we’ll use that.

Install Apache Ant first:

sudo apt install ant
git clone
cd lwjgl3-riscv-existing

If Ant hangs while doing the test step, just stop it.

Patch Minecraft

On my VF2, Prism’s files are in ~/.local/share/PrismLauncher. We need to patch the LWJGL Java library that is in Prism to link to our newly built LWJGL native libraries. To do this, run these commands to copy them to the folder where the Java library is:

cd ~/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl/3.3.1/
cp ~/lwjgl3-riscv-existing/bin/libs/native/linux/riscv64/org/lwjgl/ .
cp ~/lwjgl3-riscv-existing/bin/libs/native/linux/riscv64/org/lwjgl/glfw/ .
cp ~/lwjgl3-riscv-existing/bin/libs/native/linux/riscv64/org/lwjgl/opengl/ .
cp ~/lwjgl3-riscv-existing/bin/libs/native/linux/riscv64/org/lwjgl/stb/ .
cp ~/lwjgl3-riscv-existing/bin/libs/native/linux/riscv64/org/lwjgl/tinyfd/ .
cp ~/lwjgl3-riscv-existing/bin/libs/native/linux/riscv64/org/lwjgl/jemalloc/ .

To patch the Java library, the jar uf command works great.

jar uf lwjgl-3.3.1.jar
jar uf lwjgl-3.3.1.jar
jar uf lwjgl-3.3.1.jar
jar uf lwjgl-3.3.1.jar
jar uf lwjgl-3.3.1.jar
jar uf lwjgl-3.3.1.jar

Now we need to copy everything to our installation folder because we will disable this from happening automatically in the future.

cp * ~/.local/share/PrismLauncher/instances/1.20.1/libraries

Fix Prism

To stop Prism from clobbering our changes every time, add "MMC-hint": "local" to the LWJGL JSON patch file at ~/.local/share/PrismLauncher/instances/1.20.1/patches/org.lwjgl3.json.

nano ~/.local/share/PrismLauncher/instances/1.20.1/patches/org.lwjgl3.json

Search for lwjgl-3.3.1.jar, then add "MMC-hint": "local" to the end of the object keys (adding a comma at the end of the previous line).

Now, within the Prism launcher, go to your instances, click the Edit button for the one you have already, and go to Settings. In the Java menu, enable the Java checkbox and “Skip Java compatibility checks.” In the Version tab in Settings, click the LWJGL3 row and then the Reload button to get the new local file configuration.

Play Minecraft

If the steps worked correctly, you should be able to click the Launch button and watch Minecraft coming to life veeeeerrrrrryyyyy slowly. I couldn’t figure out how to the the Imagination GPU working even with Zink because it seems like the driver probe feature is completely broken.

I hope this works for you! :slight_smile:


The OpenJDK provided is actually running RISC-V under emulation which is much slower. There was a user in this forum that provided java 19 with native RISC-V support that was much faster.

i think i get to ‘Minecraft is now running’
Prism Launcher has some blurb about [MALWARE WARNING]
Just close the whole thing down at that point and proceed?

It’s probably running with Mesa’s softpipe drivers for software emulation because Vulkan and real OpenGL aren’t ported to the GPU yet.