Join Caleb Smith for an in-depth discussion in this video Installing and setting up, part of Code Clinic: Clojure.
- [Lecturer] In this video, we'll go over everything you need to install to get programming in Clojure. First, you'll need to install the Java JDK version 1.8 or higher from Oracle.com. You'll need to select, accept license agreement and then choose the download for your operating system and be sure to use the 64-bit option if you have a 64-bit system. I'm using a Mac, so I'll click on the Mac OS 10 link. Clicking the link will download the installer which you'll need to run. Next, we'll need to install a build tool for Clojure called Leiningen.
I already have Leiningen installed, but to set it up on your computer, check out Arthur Ulfeldt's Up and Running with Clojure. For this course, we'll be using the IntelliJ Community Edition IDEA by JetBrains. I have version 2016.2, but a newer one will work just fine. Choose your operating system and then under Community, click Download. When it's finished downloading, you'll need to walk through the usual install wizard. Lastly, we'll walk the Cursive plugin for IntelliJ which adds several specific features for Clojure.
To do this, I'll open IntelliJ and we'll first see this prompt but we can ignore it for a moment and click IntelliJ in the toolbar and then click Preferences. On the left, click Plugins, then at the bottom click Browse Repositories. Click on the search bar and type Cursive and now on the right, click the Install button. This will download and install Cursive. Now I'll click the Restart IntelliJ button and click Restart.
Once IntelliJ restarts, we'll take a moment and configure Cursive. I'll start by clicking Create New Project and then I'll choose Leiningen on the left and click Next. For the project name, I'll just call this one hello and click Finish. Once this loads on the left, we'll click Run in the toolbar and Edit Configurations. In the top left corner, there is a plus button. I'll click here to add a configuration and I'll click Clojure REPL and then click Local.
We'll use the default configuration here on the right but I want to change the name up at the top and I'll change it to lein repl. Now I'll click OK at the bottom right. With this in place, we can click Run in the toolbar and click Run lein repl. This will start a REPL session for our project. With this configured, we are ready to start programming Clojure.
Skill Level Intermediate
1. Problem 1: Exploring Lake Pend Oreille
2. Problem 2: Image Analysis
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Recursion and Directories
6. Problem 6: Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.