Leiningen, Clojure, and NetBeans IDE

Leiningen is Clojure's build tool, here in action in NetBeans IDE 7.4:

Above you can see how "lein run", "lein clean", "lein jar", "lein uberjar", and "lein help" are supported, while here is "lein new app":

An especially cool little feature is that you can hold down the Ctrl key and then mouse over a method, then a hyperlink appears, which can be clicked to invoke the "lein run -m" command on the method:



Some problems with lexer, once those are fixed, will make the plugin available in the NetBeans Plugin Portal.


ok i am new to clojure, but even newbies, will know that clojure development means a repl

how will this plugin support repl-oriented development with clojure?

i also know that eclipse have a fairly complete clojure plugin, called counter-clock-wise , is the plan to make this plugin as complete?

Posted by guest on January 04, 2014 at 07:58 AM PST #

This is cool, I can't wait for the plugin

Posted by guest on January 07, 2014 at 07:19 AM PST #

i'm waiting for your super solution with netbeans

Posted by kais on January 15, 2014 at 02:21 AM PST #

How do you run Clojure in NetBeans? I thought enclojure plugin died some time ago and there is no native support in NetBeans for Clojure.

Posted by guest on January 29, 2014 at 01:28 AM PST #

Any updates on this? I've looked at the commit history for that repo, and I don't see any lexer work, so... It'll be a while yet, no?

Posted by guest on February 12, 2014 at 10:21 AM PST #


Hi! When is your plugin likely to be released to the Netbeans Plugin Portal?



Posted by guest on July 17, 2014 at 03:00 AM PDT #

The Clojure community has becoming larger and larger. Is there a reference page introducing NetBeans to Clojure developers on NetBeans' site ?

Posted by Charles on August 06, 2014 at 11:52 AM PDT #


I tried to build your code but I get this problem
/home/..../netbeans-8.0/harness/common.xml:217: Compile failed; see the compiler error output for details.

Then it points to MySpecialHyperlinkProvider and this is error highlighted...
import org.netbeans.lib.editor.hyperlink.spi.HyperlinkProvider;

NB says this does not exist. What can I do to fix this?


Posted by guest on August 26, 2014 at 07:30 AM PDT #


I just downloaded the GIT code. Although there are no updates in the plugin code, I managed to install the plugin to netbeans 8.0.2.
The editor seems to work (although I prefer the more colorful kate highlighting for example) but I can't run the code.

Posted by Panagiotis Papadakos on February 23, 2015 at 03:53 PM PST #

Great stuff, quite interested in seeing the next rev...

Posted by Joshua Harris on July 23, 2015 at 10:48 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« June 2016