Skip to content

Instantly share code, notes, and snippets.

@lancecarlson
Created April 4, 2009 21:19
Show Gist options
  • Save lancecarlson/90293 to your computer and use it in GitHub Desktop.
Save lancecarlson/90293 to your computer and use it in GitHub Desktop.
lance-carlsons-macbook-pro:clojure lancelotcarlson$ ant
Buildfile: build.xml
init:
compile_java:
compile_clojure:
[java] Compiling clojure.core to /Users/lancelotcarlson/src/clojure/classes
[java] Compiling clojure.main to /Users/lancelotcarlson/src/clojure/classes
[java] Compiling clojure.set to /Users/lancelotcarlson/src/clojure/classes
[java] Compiling clojure.xml to /Users/lancelotcarlson/src/clojure/classes
[java] Compiling clojure.zip to /Users/lancelotcarlson/src/clojure/classes
[java] Compiling clojure.inspector to /Users/lancelotcarlson/src/clojure/classes
jar:
BUILD SUCCESSFUL
Total time: 3 seconds
lance-carlsons-macbook-pro:clojure lancelotcarlson$ cd ../clojure-contrib/
lance-carlsons-macbook-pro:clojure-contrib lancelotcarlson$ ls
CPL.TXT Revisions build.xml classes clojure-contrib.jar clojurescript epl-v10.html src
lance-carlsons-macbook-pro:clojure-contrib lancelotcarlson$ svn up
At revision 314.
lance-carlsons-macbook-pro:clojure-contrib lancelotcarlson$ ant
Buildfile: build.xml
init:
compile_clojure:
jar:
BUILD SUCCESSFUL
Total time: 0 seconds
lance-carlsons-macbook-pro:clojure-contrib lancelotcarlson$ clj ~/Projects/
.DS_Store actionscript/ c/ diablo2/ eclipse/ forks/ imo/ imo-old/ merbunity/ python/ ruby/ set/ timesheet/
.gitignore book/ clojure/ doc/ flex/ haskell/ imo-export/ kde/ openmart/ rs/ seo/ sqlite/ tokyo/
lance-carlsons-macbook-pro:clojure-contrib lancelotcarlson$ clj ~/Projects/clojure/
compojure-hello/ hello_world.clj programming-clojure/ ring_hello_world.clj
lance-carlsons-macbook-pro:clojure-contrib lancelotcarlson$ clj ~/Projects/clojure/compojure-hello/hello.clj
Exception in thread "main" java.lang.IllegalArgumentException: Don't know how to create ISeq from: Symbol (str_utils.clj:0)
at clojure.lang.Compiler.eval(Compiler.java:4153)
at clojure.lang.Compiler.load(Compiler.java:4470)
at clojure.lang.RT.loadResourceScript(RT.java:327)
at clojure.lang.RT.loadResourceScript(RT.java:316)
at clojure.lang.RT.load(RT.java:406)
at clojure.lang.RT.load(RT.java:376)
at clojure.core$load__4557$fn__4559.invoke(core.clj:3427)
at clojure.core$load__4557.doInvoke(core.clj:3426)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at clojure.core$load_one__4520.invoke(core.clj:3271)
at clojure.core$load_lib__4540.doInvoke(core.clj:3308)
at clojure.lang.RestFn.applyTo(RestFn.java:147)
at clojure.core$apply__2869.doInvoke(core.clj:374)
at clojure.lang.RestFn.invoke(RestFn.java:443)
at clojure.core$load_libs__4544.doInvoke(core.clj:3334)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply__2869.doInvoke(core.clj:374)
at clojure.lang.RestFn.invoke(RestFn.java:460)
at clojure.core$use__4551.doInvoke(core.clj:3404)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at compojure$eval__103.invoke(gen.clj:15)
at clojure.lang.Compiler.eval(Compiler.java:4142)
at clojure.lang.Compiler.load(Compiler.java:4470)
at clojure.lang.RT.loadResourceScript(RT.java:327)
at clojure.lang.RT.loadResourceScript(RT.java:316)
at clojure.lang.RT.load(RT.java:406)
at clojure.lang.RT.load(RT.java:376)
at clojure.core$load__4557$fn__4559.invoke(core.clj:3427)
at clojure.core$load__4557.doInvoke(core.clj:3426)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at clojure.core$load_one__4520.invoke(core.clj:3271)
at clojure.core$load_lib__4540.doInvoke(core.clj:3308)
at clojure.lang.RestFn.applyTo(RestFn.java:147)
at clojure.core$apply__2869.doInvoke(core.clj:374)
at clojure.lang.RestFn.invoke(RestFn.java:443)
at clojure.core$load_libs__4544.doInvoke(core.clj:3334)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply__2869.doInvoke(core.clj:374)
at clojure.lang.RestFn.invoke(RestFn.java:443)
at clojure.core$require__4548.doInvoke(core.clj:3394)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at compojure.ns_utils$immigrate__10.doInvoke(ns_utils.clj:10)
at clojure.lang.RestFn.invoke(RestFn.java:709)
at compojure$eval__14.invoke(compojure.clj:18)
at clojure.lang.Compiler.eval(Compiler.java:4142)
at clojure.lang.Compiler.load(Compiler.java:4470)
at clojure.lang.RT.loadResourceScript(RT.java:327)
at clojure.lang.RT.loadResourceScript(RT.java:316)
at clojure.lang.RT.load(RT.java:406)
at clojure.lang.RT.load(RT.java:376)
at clojure.core$load__4557$fn__4559.invoke(core.clj:3427)
at clojure.core$load__4557.doInvoke(core.clj:3426)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at clojure.core$load_one__4520.invoke(core.clj:3271)
at clojure.core$load_lib__4540.doInvoke(core.clj:3308)
at clojure.lang.RestFn.applyTo(RestFn.java:147)
at clojure.core$apply__2869.doInvoke(core.clj:374)
at clojure.lang.RestFn.invoke(RestFn.java:443)
at clojure.core$load_libs__4544.doInvoke(core.clj:3334)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply__2869.doInvoke(core.clj:374)
at clojure.lang.RestFn.invoke(RestFn.java:460)
at clojure.core$use__4551.doInvoke(core.clj:3404)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at clojure.core$eval__1.invoke(hello.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:4142)
at clojure.lang.Compiler.load(Compiler.java:4470)
at clojure.lang.Compiler.loadFile(Compiler.java:4437)
at clojure.lang.Script.main(Script.java:65)
Caused by: java.lang.IllegalArgumentException: Don't know how to create ISeq from: Symbol
at clojure.lang.RT.seqFrom(RT.java:491)
at clojure.lang.RT.seq(RT.java:453)
at clojure.lang.RT.first(RT.java:540)
at clojure.core$first__2743.invoke(core.clj:40)
at clojure.core$ffirst__2751.invoke(core.clj:68)
at clojure.core$import__3583.doInvoke(core.clj:1597)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at compojure.html.gen$eval__106.invoke(str_utils.clj:13)
at clojure.lang.Compiler.eval(Compiler.java:4142)
... 68 more
lance-carlsons-macbook-pro:clojure-contrib lancelotcarlson$ ls -la /Library/Java/Extensions/
total 240
drwxrwxr-x 11 root admin 374 Apr 4 02:23 .
drwxrwxr-x 4 root admin 136 Oct 15 07:34 ..
lrwxr-xr-x 1 lancelotcarlson admin 62 Mar 31 23:40 clojure-contrib.jar -> /Users/lancelotcarlson/src/clojure-contrib/clojure-contrib.jar
lrwxr-xr-x 1 lancelotcarlson admin 46 Mar 31 23:34 clojure.jar -> /Users/lancelotcarlson/src/clojure/clojure.jar
lrwxr-xr-x 1 lancelotcarlson admin 50 Apr 2 02:16 compojure.jar -> /Users/lancelotcarlson/src/compojure/compojure.jar
lrwxr-xr-x 1 lancelotcarlson admin 40 Apr 4 01:23 fact.jar -> /Users/lancelotcarlson/src/fact/fact.jar
lrwxr-xr-x 1 lancelotcarlson admin 60 Apr 2 01:25 jetty-6.1.15.jar -> /Users/lancelotcarlson/src/jetty-6.1.15/lib/jetty-6.1.15.jar
lrwxr-xr-x 1 lancelotcarlson admin 65 Apr 2 01:24 jetty-util-6.1.15.jar -> /Users/lancelotcarlson/src/jetty-6.1.15/lib/jetty-util-6.1.15.jar
-rw-r--r--@ 1 lancelotcarlson admin 87325 Mar 31 23:28 jline-0.9.94.jar
lrwxr-xr-x 1 lancelotcarlson admin 40 Apr 4 02:23 ring.jar -> /Users/lancelotcarlson/src/ring/ring.jar
lrwxr-xr-x 1 lancelotcarlson admin 72 Apr 2 01:25 servlet-api-2.5-20081211.jar -> /Users/lancelotcarlson/src/jetty-6.1.15/lib/servlet-api-2.5-20081211.jar
cat ~/bin/clj
#!/bin/bash
# Runs Clojure using the classpath specified in the `.clojure` file of the
# current directory.
#
# Mark Reid <http://mark.reid.name>
# CREATED: 2009-03-29
JAVA=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java
CONTRIB=$CLJ_DIR/clojure-contrib.jar
CP=$PWD:$CONTRIB
if [ -z "$1" ]; then
$JAVA -server -cp $CP \
jline.ConsoleRunner clojure.lang.Repl
else
scriptname=$1
$JAVA -server -cp $CP clojure.lang.Script $scriptname -- $*
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment