Computational Methods

Setting Up Clojure with IntelliJ IDEA

For this course we will be using the Clojure Programming Language with the IntelliJ IDEA development environment. IntelliJ IDEA is available for Windows, macOS, and Linux.

Installing IntelliJ IDEA and Cursive

  1. Download and install IntelliJ IDEA for your operating system. Use the default installation options.
  2. Launch IntelliJ. From the Welcome screen, select Plugins. From the Marketplace tab search for:

    cursive

    Select Cursive from Ideogram Limited and click the Install button. Restart the IDE when prompted.

Project Creation

  1. Create the initial project structure manually. Using your preferred OS tool (such as a file manager or the terminal), create a folder called comp-methods. Inside this folder, download the following file:

  2. From the IntelliJ IDEA Welcome screen, select Open (not New Project). Navigate to the comp-methods folder and select the folder itself.

  3. If the system asks you to set up clj-kondo say yes. Also, accept to download ClojureDocs and the repository indexes.

  4. Configure the Java Software Development Kit (SDK) for the project. From the IntelliJ IDEA main menu, select File > Project Structure... On the left sidebar, ensure Project is selected. Under SDK select “Download JDK...” and in the new dialog window select as vendor “Eclipse Temurin”. If you do not see this option, choose “Microsoft OpenJDK” instead. Finally, press the OK button.

Registering the Cursive License

  1. Go to the Cursive IDE license web page. In the Choose license type option, select Non-Commercial which is intended for student work. Fill the rest of the form and press the Order Now button. You will receive your License Certificate via email.

  2. Once you have the licence, in IntelliJ IDEA’s main menu go to Help and select “Register Cursive...”. Copy and paste your Licence Certificate in the provided text area and press the OK button.