Compile Minecraft to a native executable using GraalVM native-image!
- Build the Gradle project using
./gradlew assemble
- Run
./build.sh
After a few minutes, a minecraft-client
executable will have been produced.
You can run it using run.sh
, which passes a few arguments Minecraft requires.
If you pass --server
to build.sh
, you will instead get a minecraft-server
binary containing the server, and which you run directly instead of using run.sh
.
Since executables as generated by build.sh are essentially full distributions of the Minecraft codebase, the Minecraft EULA does not permit distributing them without explicit permission by Mojang.