Quick start
Install SkJvm and run your first Java block.
SkJvm is a Skript addon: write Java in .sk or .jv files and let the addon compile it and connect it to server events. You do not need a separate Java project for each script.
Prepare the server
The 2.0.0 build targets Paper / Minecraft 26.1.2, Skript 2.15.4, and a full JDK 25. The jdk.compiler module is required; a stripped runtime is insufficient. See installation.
Download the JAR from Modrinth, place it in plugins, and restart the server. Use SkJvm-2.0.0.jar, not the -plain artifact.
Write your first script
Create plugins/Skript/scripts/hello.sk:
command /javahello:
trigger:
execute java:
var words = List.of("Hello", "from", "SkJvm!");
sender.sendMessage(String.join(" ", words));
Run /sk reload hello, wait for Java block ready in the console, then run /javahello in game or from the server console.
Understand loading
Skript parsing submits compilation to a background pool. Once ready, the block executes on the original event thread with a fresh context for every invocation.
Next steps
Choose inline blocks or modules, then explore the variable bridge. See the FAQ for common failures.