A Runelite Plugin that allows you to track your friends' locations and progress in realtime.
JDK 11 — seems to be the only JDK version that works for Runelite plugin development.
On macOS with Homebrew:
brew install openjdk@11
/usr/libexec/java_home -v 11 # print install path for IDE configurationThe RuneLite dev client entry point is mainTrackerTest.MainTrackerPluginTest (src/test/java/mainTrackerTest/MainTrackerPluginTest.java). Use VM argument -ea (enable assertions) when launching.
- Install JDK 11.
- Install VS Code and the Extension Pack for Java.
- Open this folder in VS Code (File → Open Folder).
- Command Palette (
Cmd+Shift+P) → Java: Configure Java Runtime. - Set JDK 11 as the default for this workspace (or add a runtime and mark it default).
Alternatively, add .vscode/settings.json with your JDK 11 path (adjust for your machine):
{
"java.jdt.ls.java.home": "/path/to/jdk-11",
"java.configuration.runtimes": [
{
"name": "JavaSE-11",
"path": "/path/to/jdk-11",
"default": true
}
]
}Homebrew OpenJDK 11 is often at:
/opt/homebrew/opt/openjdk@11/libexec/openjdk.jdk/Contents/Home
- Open this repository as a folder; the Java extension imports it as a Gradle project automatically.
- Wait for Gradle sync / “Building workspace” to finish in the status bar.
- If import fails: Java: Clean Java Language Server Workspace → reload the window, then retry.
Compiler level 11 is set in build.gradle (options.release.set(11)).
Use the included launch configuration (Run and Debug → Run RuneLite (Main Tracker)), or open MainTrackerPluginTest.java and use Run / Debug above main.
The launch config (.vscode/launch.json) sets:
- Main class:
mainTrackerTest.MainTrackerPluginTest - VM args:
-ea - projectName: must match
rootProject.nameinsettings.gradle(currentlyexample)
./gradlew shadowJarOutput: build/libs/example-1.0-SNAPSHOT-all.jar
- Import the project into Eclipse as an Existing Gradle Project.
- Right click project → Run → Run Configurations.
- Set the main class to
mainTrackerTest.MainTrackerPluginTest. - Under Arguments → VM arguments, add
-ea. - Under JRE → Alternate JRE, select JDK 11.
- Apply and save.
- Eclipse → Settings → Java → Compiler.
- Set Compiler compliance level to 11.
- Apply and save.