IntelliJ Setup

From Kolmafia
Revision as of 03:26, 14 October 2020 by imported>Mcroft
Jump to navigation Jump to search

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.

  1. From the IntelliJ IDEA File Menu, choose New>New Project from Existing sources
    1. Choose the directory with the kolmafia build.xml file and press Open
    2. Choose Create Project from Existing Sources and press Next
    3. Enter the name KoLmafia and press Next
    4. Verify that the project is visible to IDEA and press Finish
  2. Add the Ant Build File
    1. Open the Ant Toolbar item (typically on the right side, and not very large)
    2. Choose the + button to add a build file
    3. Choose build.xml from the file selector and press Open
    4. Verify that a list of ANT targets appears in the Ant Toolbar
  3. Check Project Settings
    1. From the File Menu, choose Project Structure...
    2. Select Project on the Left Menu
      1. set the name to kolmafia
      2. set the Project SDK to any SDK version 1.8 or higher
      3. set the project language level to 8
      4. set the project compiler output to build
    3. Select Modules on the Left Menu
    4. Select Libraries on the Left Menu
    5. Select Problems on the Left Menu (if the menu item shows any problems)
    6. Press Apply
    7. Press OK
  4. Add Run/Debug Configuration