Created
August 24, 2010 01:37
-
-
Save duncanmak/546728 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mac:foo duncan$ cat src/foo/core.clj | |
(ns foo.core (:require clojure.java.io)) | |
(defn foo [] (println (file (System/getProperty "user.home")))) | |
mac:foo duncan$ java -cp "lib/*" clojure.main src/foo/core.clj | |
Exception in thread "main" java.lang.Exception: Unable to resolve symbol: file in this context (core.clj:3) | |
at clojure.lang.Compiler.analyze(Compiler.java:5205) | |
at clojure.lang.Compiler.analyze(Compiler.java:5151) | |
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3036) | |
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5371) | |
at clojure.lang.Compiler.analyze(Compiler.java:5190) | |
at clojure.lang.Compiler.analyze(Compiler.java:5151) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment