Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Clojure JavaScript
tree: b7cec28538

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
data
public
script
src
test
.classpath
.gitignore
.project
README.markdown
epl-v10.html
pom.xml
project.clj

README.markdown

labrepl for Clojure

Copyright (c) Relevance, Inc. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.

From the Command Line

You will need to work at the command line long enough to install the dependent libs (except on Netbeans, see below). Instructions below use leiningen. However, I have checked in the maven pom.xml file, so if somebody will send me pure maven instructions I can add a section for that as well.

Getting Started (Mac, Linux)

  • Make sure you have Java installed.
  • Make sure you have leiningen installed (http://github.com/technomancy/leiningen).
  • Run lein deps to install dependent libs.
  • Run script/repl to launch the labrepl.
  • Browse to localhost:8080 for instructions.
  • Press Ctrl+D to exit the repl when you are done.

Getting Started (Windows)

This is minimally tested. Let me know if you have problems.

  • Make sure you have Java installed.
  • Make sure you have leiningen installed (http://github.com/technomancy/leiningen). Do not use lein self-install as Windows installation is a manual process. You will need to:
  • Download leinigen.jar and set LEIN_JAR to point to it.
  • Download a Clojure 1.1 clojure.jar (from clojure.org) and set CLOJURE_JAR to point to it.
  • Set your path to include {your-lein-install}\bin
  • Run lein.bat deps to install dependent libs
  • Run script\repl to launch the labrepl.
  • Browse to localhost:8080 for instructions.
  • Press Ctrl+D to exit the repl when you are done.

Getting Started (Maven)

  • Make sure you have Java installed.
  • Make sure you have Maven (http://maven.apache.org/) installed.
  • Run mvn clojure:repl to launch Clojure REPL (maven will download all necessary dependencies).
  • Browse to localhost:8080 for instructions.
  • Press Ctrl+D to exit the repl when you are done.

IDE Support

NetBeans Enclojure Integration

One-time setup

  • Grab labrepl from git
    • you do not need leiningen or to do the lein or any other steps above
  • If you've just installed Netbeans, activate feature Java SE
    • Activate features is on the Start page
    • or from Tools, Plugins, Installed
  • Install enclojure
  • Restart Netbeans w/enclojure plugin installed
  • Open project labrepl
    • File, Open project, select directory where you pulled labrepl
  • Right click on Libraries in the project pane
    • Download missing dependencies
    • wait for that to complete

To run the labrepl

  • Right click on project in the project pane
    • Start Project REPL
  • In the integrated REPL:
    • (require 'labrepl)
    • (labrepl/-main)
  • Browse to localhost:8080
  • Enjoy the labs!

Eclipse CounterClockwise Integration

  • The repository includes Eclipse .project and .classpath files. If you are using the counterclockwise Eclipse plugin (http://code.google.com/p/counterclockwise/) you should be able to import the project into your workspace.

IDEA Integration

  • Help wanted here. You can create an IDEA project over existing sources, accept the defaults, and things will partially work. Completion will work against project code, but not against functions in clojure and clojure-contrib. If you know how to fix this, please send me a patch.

Emacs Integration

If you don't know emacs you may want to pick one of the choices above. The learning curve is steep.

  • Install Emacs, the Emacs Starter Kit, and
  • From within emacs, set the inferior-lisp-program variable to script/swank.
  • Making sure your emacs working directory is the labrepl, run inferior-lisp.
  • If you want slime as well, run slime-connect and accept the defaults. You now have slime and inferior-lisp both working simultaneously.

Thanks for contributions and reviews from

  • Aaron Bedra
  • Rich Hickey
  • Larry Karnowski
  • Michael Kohl
  • Jess Martin
  • Alex Ott
Something went wrong with that request. Please try again.