<No main classes found> message

44 views
Skip to first unread message

Sean Neilan

unread,
Jul 4, 2011, 4:42:52 PM7/4/11
to enclojure
Hey All,

I'm trying to run a Clojure 1.2 Maven project in Netbeans 7.0 with the
latest version of Enclojure on OSX 1.6.

I created my project and added this code:

(ns com.yourcompany.defpackage
;(:import )
;(:require )
(:gen-class)
)

(defn -main [args]
(println "Hello World!")
(println "Java main called clojure function with args: "
(apply str (interpose " " args))))

Unfortunately, when I press the run button, it asks me for a main
class and there are no main classes.

It seems all the documentation on Enclojure is out of date, I have to
modify pom.xml in some way (and there's no documentation on that) and
Maven requires an actual Java class alongside the clojure code.

I'm not sure what do to. Any advice would be greatly appreciated.

YKY (YAN King Yin 甄 景 贤)

unread,
May 11, 2012, 12:22:44 PM5/11/12
to encl...@googlegroups.com
================================

I'm new to Enclojure (but I have used Lein successfully) and I got the
same error. It seems that after almost a year, this basic question is
left unanswered and there is no clear, easy-to-find instruction on the
net as to how to get "Hello World" to run.

It would be very nice to provide an answer here...
Thanks in advance,
YKY

PS: there is also no button to "reply" to the original author's
message. That's weird...
Reply all
Reply to author
Forward
0 new messages