-
Notifications
You must be signed in to change notification settings - Fork 81
Eclipse
Kristopher Klauer edited this page Jul 5, 2013
·
4 revisions
This is a one-time setup that does not require the git command line, Maven, or leiningen.
- Install Eclipse:
- Download a recent version of "Eclipse IDE for Java Developers"
- Unzip it in a directory of your choosing.
- The executable is in the unzipped directory: eclipse (Linux), Eclipse (Mac), or eclipse.exe (Windows)
- Launch Eclipse
- The first time it is run, Eclipse will ask you for the location where Eclipse will put its metadata and will create new projects by default.
- Install the Eclipse Git (EGit) plugin:
- Go to the Help > Install New Software menu
- For the "Work with:" site, use: http://download.eclipse.org/egit/updates
- Hit Enter
- Expand the resulting "Eclipse Git Team Provider" set of features
- Select the "Eclipse EGit Feature"
- Verify the "Contact all update sites during ..." checkbox is checked
- Click "Next" and accept the license when prompted
- Click "Finish" to start the installation process
- When EGit has been installed, restart Eclipse
- Install the Maven (m2e) plugin:
- Go to the Help > Install New Software menu
- For the "Work with:" site, use: http://download.eclipse.org/technology/m2e/releases/
- Hit Enter
- Select "Maven Integration for Eclipse"
- Verify the "Contact all update sites during ..." checkbox is checked
- Click "Next" and accept the license when prompted
- Click "Finish" to start the installation process
- When Maven has been installed, restart Eclipse
- Install the Counterclockwise plugin:
- Go to the Help > Install New Software menu
- For the "Work with:" site, use: http://ccw.cgrand.net/updatesite/
- Hit Enter
- Select "Clojure Programming"
- Verify the "Contact all update sites during ..." checkbox is checked
- Click "Next" and accept the license when prompted
- Click "Finish" to start the installation process
- When Counterclockwise has been installed, restart Eclipse
- Clone the labrepl project from GitHub:
- Go to File > Import ... > Git > Git Repository
- Hit Next
- For the "URI:", use: git://github.com/relevance/labrepl.git
- Hit Next twice
- Uncheck "Import Existing Projects" if prompted
- Hit "Select All" and hit "Finish"
- Import the labrepl Maven project into Eclipse:
- Go to File > Import ... > Maven > Existing Maven Projects
- Hit Next
- Choose the root directory where you cloned the labrepl project in the previous step
- Verify that the pom.xml file is selected
- Hit Finish
- Enable Clojure support
- Right-click the labrepl project in Package Explorer and choose "Enable/disable clojure language support"
To run the labrepl:
- Right click on the project in the Package Explorer and select Run As > Clojure REPL
- In the REPL console, type:
(require 'labrepl)
(labrepl/-main)
- Browse to http://localhost:8080
- Enjoy the labs!