Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  • Menu Help > Install new software…
  • Paste the following Counterclockwise url in the “Work with:” textbox: http http://updatesite.ccw-ide.cgrand.netorg/updatesitestable/ , Hit Enter
  • Select counterclockwise, verify the “Contact all update sites during …” chekbox is checked, click next, accept licence, etc., restart Eclipse
  • Go to menu Window > Reset Perspective ... this will reset the way the views are layout, and also place correctly the views contributed by Counterclockwise (the Namespace Browser view, placed "behind" the code outline view)


  • Open the Java perspective
    • Window > Open Perspective > Java (a perspective is a predefined layout of views, suitable for a particular type of development)
  • Create a Clojure project
    • With Leiningen Clojure Project Wizard: File > New > Leiningen Clojure Project, name it myproject
    • The project is created using the "default" Leiningen Template, which creates a Clojure project with a predefined "myproject.core" namespace in src/myproject/core.clj
  • Add a function definition to myproject.core:
    • Open src/myproject/core.clj, add the following at the end: (defn hello [who] (str "Hello " who " !")), save the file
  • Run the project:
    • With file src/myproject/core.clj open, Hit Ctrl+Alt+S (Cmd+Alt+S on MacOS). This sends the whole file's code to the REPL (and also takes care of starting a REPL for the project if none is currently started)
  • Switch to the REPL in the namespace of your file:
    • Hit Ctrl+Alt+N (Cmd+Alt+N on MacOS). Alternatively, just click on the bottom of the REPL inside the "text input area"
  • Call your function (Hit Enter to send the expression if the cursor is at the end, or hit Ctrl+Enter / Cmd+Enter if the cursor is not at the end of the text):

    No Format
    > 1:1 helloworld=> (hello "Betty") [Ctrl+Enter]
    > "Hello Betty !"