IntelliJ Setup
This guide assumes that you have a recent enough version of JAVA JDK, ANT, and IntelliJ Idea. Completing Compiling from Source is a requirement for this guide, although experienced developers can skip to whatever step is appropriate.
- From the IntelliJ IDEA File Menu, choose New>New Project from Existing sources
- Choose the directory with the kolmafia build.xml file and press Open
- Choose Create Project from Existing Sources and press Next
- Enter the name KoLmafia and press Next
- Verify that the project is visible to IDEA and press Finish
- Add the Ant Build File
- Open the Ant Toolbar item (typically on the right side, and not very large)
- Choose the + button to add a build file
- Choose build.xml from the file selector and press Open
- Verify that a list of ANT targets appears in the Ant Toolbar
- Check Project Settings
- From the File Menu, choose Project Structure...
- Select Project on the Left Menu
- set the name to kolmafia
- set the Project SDK to any SDK version 1.8 or higher
- set the project language level to 8
- set the project compiler output to build
- Select Modules on the Left Menu
- Select Libraries on the Left Menu
- Select Problems on the Left Menu (if the menu item shows any problems)
- Press Apply
- Press OK
- Add Run/Debug Configuration