Skip to content

Instantly share code, notes, and snippets.

@lancecarlson
Created April 4, 2009 08:10
Show Gist options
  • Save lancecarlson/90148 to your computer and use it in GitHub Desktop.
Save lancecarlson/90148 to your computer and use it in GitHub Desktop.
$ 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
clj 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
$ ls -la /Library/Java/Extensions/
total 224
drwxrwxr-x 9 root admin 306 Apr 2 02:16 .
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 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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment