Building RuneLite in IntelliJ IDEA
Setting up a local development environment for RuneLite allows customization and plugin development. Follow this guide to build RuneLite using IntelliJ IDEA.
Prerequisites
Before you begin, ensure you have the following:
- JDK 11 (Download from Oracle JDK 11)
- IntelliJ IDEA Community Edition (Download here)
- Maven (Integrated with IntelliJ)
- Git (Optional, for cloning the repository)
Step 1: Install JDK 11
- Download JDK 11 from Oracle.
- Run the installer and follow the default prompts.
- Verify installation by running:
java -version
Ensure the output shows Java 11.
Step 2: Install IntelliJ IDEA
- Download IntelliJ IDEA Community Edition from JetBrains.
- Run the installer and complete the setup.
- Launch IntelliJ IDEA and proceed with default settings.
Step 3: Clone the RuneLite Repository
- Open IntelliJ IDEA.
- Click on “Get from Version Control”.
- Enter the RuneLite GitHub repository URL:
https://github.com/runelite/runelite.git
- Click Clone and wait for the process to finish.
Step 4: Configure the Project SDK
- Navigate to File → Project Structure.
- Set Project SDK to Java 11.
- Apply changes and close the settings window.
Step 5: Build the Project with Maven
- Open the Maven panel (usually on the right side of IntelliJ IDEA).
- Expand the RuneLite project.
- Locate “install” under the Lifecycle section.
- Right-click install and select “Run Maven Build”.
- Wait for BUILD SUCCESS confirmation.
Step 6: Run RuneLite
- Click the Build icon (green hammer) to compile the project.
- Locate the “runelite-client” folder:
runelite-client → src → main → java → net.runelite.client
- Right-click RuneLite.java and select Run ‘RuneLite’.
- RuneLite should launch successfully.
Troubleshooting
Common Errors & Fixes
- SDK Not Set to 11?
-
Go to File → Project Structure → Ensure Java 11 is selected.
-
Build Errors?
- Run
clean install
in the Maven panel. -
Ensure you have a stable internet connection.
-
Transparent or Blank Client?
- Rebuild the project and update dependencies.
Step 7: Adding Plugins
- Navigate to:
runelite-client → src → main → java → net.runelite.client.plugins
- Copy custom plugins to this directory.
- Run Maven install to compile changes.
Conclusion
Congratulations! You have successfully built RuneLite in IntelliJ IDEA. Now you can:
- Modify the client
- Develop custom plugins
- Contribute to the open-source community
🎉 Happy coding!