SHARE
TWEET

Untitled

a guest Jun 23rd, 2013 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; project.clj
  2.  
  3. (defproject learnclojure "0.1.0-SNAPSHOT"
  4.   :description "FIXME: write description"
  5.   :url "http://example.com/FIXME"
  6.   :license {:name "Eclipse Public License"
  7.             :url "http://www.eclipse.org/legal/epl-v10.html"}
  8.   :dependencies [[org.clojure/clojure "1.5.1"]]
  9.   :main learnclojure.core)
  10.  
  11.  
  12. ;; src/learnclojure/core.clj
  13.  
  14. (ns learnclojure.core
  15.   (:gen-class))
  16.  
  17. (defn -main
  18.   "I don't do a whole lot ... yet."
  19.   [& args]
  20.   ;; work around dangerous default behaviour in Clojure
  21.   (alter-var-root #'*read-eval* (constantly false))
  22.   (println "Hello, World!"))
  23.  
  24.  
  25.  
  26. calvin % lein compile; lein jar
  27. Compiling learnclojure.core
  28. Created /Users/calvin/work/learnclojure/target/learnclojure-0.1.0-SNAPSHOT.jar
  29. (git)-[master] 164 s002 Sun 23 Jun 17:15 | ~/work/learnclojure |
  30. calvin % java -jar target/learnclojure-0.1.0-SNAPSHOT.jar
  31. Exception in thread "main" java.lang.NoClassDefFoundError: clojure/lang/IFn
  32. Caused by: java.lang.ClassNotFoundException: clojure.lang.IFn
  33.         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
  34.         at java.security.AccessController.doPrivileged(Native Method)
  35.         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
  36.         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  37.         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.j
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top