Skip to content

Instantly share code, notes, and snippets.

@duncanmak
Created August 24, 2010 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duncanmak/546728 to your computer and use it in GitHub Desktop.
Save duncanmak/546728 to your computer and use it in GitHub Desktop.
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