views:

99

answers:

1

I decided to take a look at Clojure and thought the best and easiest method for me would be to use Netbeans with the Enclojure plugin as I didn't want to have to learn Emacs at the same time. I installed Netbeans 6.9.1 together with the latest JDK using the bundled install (on Windows 7). All went smoothly. I then followed the instructions at http://www.enclojure.org/gettingstarted for installing the enclojure plugin.

When creating a new Clojure application I get the following and see no project files :

java.io.IOException: Could not connect to URL nbresloc:/org/enclojure/ide/templates/project/ClojureProjectTemplate-1.1-distribution.zip. No such resource was found.

  • Maven is working using mvn --version
  • I have installed on both Windows 7 and Ubuntu 10.04 (same result).
  • I have looked on the Enclojure forum and there is a recent open thread for this issue, but it is not solved by anybody presently.
  • I have Java SE enabled in Netbeans
  • I have tried enabling the different platform versions of Clojure, 1.0.0, 1.1.0, etc..
  • The REPL seems to be working happily in Netbeans : (printf "hello") hellonill
  • I did try ClojureBox on Windows 7, but again that's Emacs, but emacs failed to start the server and hung there and became totally unresponsive.
  • I come from a .Net background (not Java) so my knowledge of the Java environment is somewhat lacking. My reason for looking at Clojure and not Java.
  • I am new to Netbeans
+1  A: 

If you're interested in a working Maven pom, here is one I've used with Enclojure successfully:

There are some project settings you'll need to change and a few dependencies to remove but it might be a good start. In general, I usually create the pom first and then just import the project into NetBeans rather than using the NetBeans options to create projects.

By the way, the REPL work in Enclojure has been split and is coming soon to the Eclipse plugin Counterclockwise.

Alex Miller
what do you mean by "the REPL work" ? and how do you know that ? :P
Belun
I mean "the code that implements the REPL in NetBeans". There has been extensive talk about it in the Enclojure and Counterclockwise mailing lists lately.
Alex Miller
Thanks for the feedback. I have installed IntelliJ for now and will start with that. Once I get more familiar with clojure in general then I may start to experiment with other IDEs, but IntelliJ support for clojure seemed easy enough to set up in both Windows 7 and Ubuntu.
jadusty