eclipseclojurecounterclockwise

Counterclockwise and :gen-class


I'm using Eclipse (4.2.0) with Counteclockwise (0.10.1.STABLE001). I have a clojure namespace for which I would like to generate a class:

(ns a.b.c
  (:gen-class
   :name "a.b.c.Service"))

 (-method [] ...)

There is a defect, but it's marked as fixed as of version 0.59 here.

Is there a way that I can trigger or configure this from the IDE without resorting to a command-line compilation?

There is a related question, How to use a compiled Clojure class in Eclipse with Counterclockwise, but no solution.


Solution

  • In Counterclockwise 0.10.1 (the version you're using), there is a simple way to do this: you have to start a launch configuration from the project's root node contextual menu (Run as > Clojure Application).