clojure.jar/classpath for SVN version

1 view
Skip to first unread message

Craig McDaniel

unread,
Nov 9, 2008, 1:45:27 PM11/9/08
to Clojure
Previously, I could run clojure with:

java -cp clojure.jar clojure.lang.Repl

After building clojure.jar from a more recent SVN version (1092) that
includes AOT and generated classes, it looks like I have to now
include the generated classes in the classpath (running from trunk
directory):

java -cp clojure.jar:gen clojure.lang.Repl

...and that only works on the second attempt, after the files in the
gen directory have been created.

Shouldn't the build.xml file be modified to include these gen files in
clojure.jar?

Craig McDaniel

unread,
Nov 9, 2008, 7:21:06 PM11/9/08
to Clojure
Without including gen in the classpath, the following exception is
reported:

$ java -cp clojure.jar clojure.lang.Repl
Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.lang.Repl.<clinit>(Repl.java:23)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.ClassNotFoundException:
clojure.core$eval__1 (core.clj:
0)
at clojure.lang.RT.<clinit>(RT.java:325)
... 1 more
Caused by: java.lang.RuntimeException:
java.lang.ClassNotFoundException: clojure.core$eval__1 (core.c
lj:
0)
at clojure.lang.Compiler.eval(Compiler.java:4131)
at clojure.lang.Compiler.load(Compiler.java:4447)
at clojure.lang.RT.loadResourceScript(RT.java:366)
at clojure.lang.RT.loadResourceScript(RT.java:357)
at clojure.lang.RT.doInit(RT.java:380)
at clojure.lang.RT.<clinit>(RT.java:321)
... 1 more

Chouser

unread,
Nov 9, 2008, 7:31:31 PM11/9/08
to clo...@googlegroups.com
On Sun, Nov 9, 2008 at 7:21 PM, Craig McDaniel <crai...@gmail.com> wrote:
>
> Without including gen in the classpath, the following exception is
> reported:

This may have something to do with the last few checkins.
I'd recommend you use SVN version 1088 instead.

Here are the last few change log comments for your reference:

SVN 1092:
Author: rhickey <rhickey@b4165764-bd0f-0410-b771-ab16a44d2305>
Date: Sat Nov 8 19:06:14 2008 +0000

Interim checkin - DO NOT USE!!
Unless you are interested in helping test:
deleted set/xml etc dirs
Moved clojure ns to clojure.core, moved set/xml etc up out of dirs
New binding syntax (breaking change) for:
doseq
dotimes
with-open
when-first
if-let
when-let
plus:
new print-dup functionality for replica generation of compilation constants
new *print-dup* flag, prints duplicators
back to simplified readably printing for repl
readable fns, as long as they are not closures

SVN 1091:
Author: rhickey <rhickey@b4165764-bd0f-0410-b771-ab16a44d2305>
Date: Sat Nov 8 18:53:02 2008 +0000

Interim checkin - DO NOT USE!!
Unless you are interested in helping test:
Moved clojure ns to clojure.core, moved set/xml etc up out of dirs
New binding syntax (breaking change) for:
doseq
dotimes
with-open
when-first
if-let
when-let
plus:
new print-dup functionality for replica generation of compilation constants
new *print-dup* flag, prints duplicators
back to simplified readably printing for repl
readable fns, as long as they are not closures

SVN 1090:
Author: rhickey <rhickey@b4165764-bd0f-0410-b771-ab16a44d2305>
Date: Sat Nov 8 15:09:22 2008 +0000

Interim checkin - DO NOT USE!!
Unless you are interested in helping test:
New binding syntax (breaking change) for:
doseq
dotimes
with-open
when-first
if-let
when-let
plus:
new print-dup functionality for replica generation of compilation constants
new *print-dup* flag, prints duplicators
back to simplified readably printing for repl
readable fns, as long as they are not closures

SVN 1089:
Author: rhickey <rhickey@b4165764-bd0f-0410-b771-ab16a44d2305>
Date: Sat Nov 8 01:06:34 2008 +0000

Interim checkin - DO NOT USE!!
Unless you are interested in helping test:
new print-dup functionality for replica generation of compilation constants
new *print-dup* flag, prints duplicators
back to simplified readably printing for repl
readable fns, as long as they are not closures

--Chouser

Craig McDaniel

unread,
Nov 9, 2008, 8:21:20 PM11/9/08
to Clojure
Thanks very much. I'll read these change logs for the SVN versions
from now on!

The README for the swank-clojure project recommends using the SVN
version of Clojure, otherwise I'd stick with the regular releases. The
README should probably be modified to point to release 1088.

On Nov 9, 7:31 pm, Chouser <chou...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages