Clojure – Environment

clojure environment

In this guide, we will discuss Clojure Environment Setup. There are a variety of ways to work with Clojure as a programming language. We will look at two ways to work with Clojure programming.

  • Leiningen − Leiningen is an essential tool to create, build, and automate Clojure projects.
  • Eclipse Plugin − There is a plugin called CounterClockwise, which is available for Eclipse for carrying out Clojure development in the Eclipse IDE.

Leiningen Installation

Ensure the following System requirements are met before proceeding with the installation.

System Requirements

JDKJDK 1.7 or above
Memory2 GB RAM (recommended)

Step 1 − Download the binary installation. Go to the link http://leiningen-wininstallerto get the Windows Installer. Click on the option to start the download of the Groovy installer.

Step 2 − Launch the Installer and click the Next button.

launching installer

Step 3 − Specify the location for the installation and click the Next button.

location installation

Step 4 − The setup will detect the location of an existing Java installation. Click the Next button to proceed.

java installation

Step 5 − Click the Install button to begin the installation.

begin installation

After the installation is complete, it will give you the option to open a Clojure REPL, which is an environment that can be used to create and test your Clojure programs.

clojure programs

Eclipse Installation

Ensure the following System requirements are met before proceeding with the installation.

System Requirements

JDKJDK 1.7 or above
EclipseEclipse 4.5 (Mars)

Step 1 − Open Eclipse and click the Menu item. Click Help → Eclipse Marketplace.

eclipse marketplace

Step 2 − Type in the keyword Clojure in the dialog box which appears and hit the ‘Go’ button. The option for counterclockwise will appear, click the Install button to begin the installation of this plugin.

clojure dialog box

Step 3 − In the next dialog box, click the Confirm button to begin the installation.

clojure confirm button

Step 4 − In the next dialog box, you will be requested to accept the license agreement. Accept the license agreement and click the Finish button to continue with the installation.

clojure environment accept license

The installation will begin, and once completed, it will prompt you to restart Eclipse.

Once Eclipse is restarted, you will see the option in Eclipse to create a new Clojure project.

clojure environment project

Next Topic : Click Here

This Post Has One Comment

Leave a Reply