title: running clojure in eclipse (counterclockwise)
body: <p>I'm learning clojure on eclipse (counterclockwise plugin).</p>
  
  <ul>
  <li>When I click "run" in eclipse (as I would do with Java) I get not
  only the console opened but this "REPL" window. Why is it necessary
  and what does it do?</li>
  <li>When I click "run" it takes quite a few seconds to launch the app. Is
  there a way to make it faster?</li>
  <li>When I need to edit the code and relaunch (run) the the app I'm getting this
  message: "The selection cannot be launched, and there are no recent
  launches". What is that and why wouldn't it let me relaunch my code?
  If I wait a while I can launch it again.</li>
  </ul>
  
  <p>This is simple bit of code that I'm trying to run:</p>
  
  <pre><code>(ns ClojureTest.core)
  
  (let [input (read-line)]
    (if (= "x" input)
      (do
        (println "Exit")
        (System/exit 0)
      )
      (do
        (println input)
        (recur)
      )
    )
  )
  </code></pre>
  
  <p><strong>UPDATE:</strong> I managed to screw it up even further. Now when I click "Run" the console ignores any input as if the application wasn't even running...</p>
  
  <p><strong>UPDATE2</strong> I've restarted eclipse and the previous problem was solved. Now I can run the app in the console again. I have no idea what happened. The only difference I can see is that when I messed it up - the REPL window title looked like this:</p>
  
  <pre><code>REPL @ nrepl://127.0.0.1:60429 (user)
  </code></pre>
  
  <p>And after restarting eclipse it came back to this:</p>
  
  <pre><code>REPL @ nrepl://127.0.0.1:60001 (ClojureTest.core)
  </code></pre>
  
  <p>I have no idea what this means.</p>