clojure - A "hello world" using Netbeans 7.0 Enclojure 1.5 -



clojure - A "hello world" using Netbeans 7.0 Enclojure 1.5 -

i started learning clojure. utilize netbeans have no thought how setup simple app spits out anything. followed setup enclojure plugin , seems good. can give short tutorial or hint 1 on setup.

prerequisites:

netbeans 7 enclojure plugin maven set correctly maven installed maven proxy setup if behind proxy netbeans: tools > options > miscellaneous > maven

project setup:

menu file > new project > clojure > clojure 1.2 maven project projectname= helloworld default namespace= com.jfcorbet.helloword

browse project:

projects window > source packages > com.jfcorbet > helloworld.clj

you'll see:

(ns com.jfcorbet.helloworld ;(:import ) ;(:require ) )

add:

(defn hello "prints hello , name parameter" [name] (println (str "hello " name))) (hello "jean-françois")

and save.

now rightclick project , take "build dependencies", should create maven download clojure , contrib libraries, , take care of dependencies.

then

rightclick project , take "start project repl" project window > helloworld.clj > rmb > take "load sources in repl" or select source text , rmb > "evaluate expr in repl"

netbeans clojure

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -