Hi,

   It was possible in clojure 1.0.0 to include clojure Persistent
collections in Jython:

jython -Dpython.path=<clojure_dist>/clojure_1.0.0/clojure-1.0.0.jar

>>>from clojure.lang import PersistentList
>>>b= PersistentList.create([7, 8, 2])
>>>b
(7 8 2)

   But with clojure 1.1.0 or 1.2.0 I get:

jython -Dpython.path=<clojure_dist>/clojure-1.2.0/clojure.jar

>>> from clojure.lang import PersistentList
>>> b= PersistentList.create([7, 8, 2])
>>> b
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
java.lang.ExceptionInInitializerError
        at clojure.lang.ASeq.toString(ASeq.java:20)
        at org.python.core.PyJavaType$5.__call__(PyJavaType.java:542)
        at org.python.core.PyObjectDerived.__repr__(PyObjectDerived.java:63)
        at org.python.core.PySystemState.displayhook(PySystemState.java:1190)
        at org.python.core.PySystemStateFunctions.__call__(PySystemState.java:
1257)
        at org.python.core.PyObject.invoke(PyObject.java:3583)
        at org.python.core.Py.printResult(Py.java:1748)
        at org.python.pycode._pyx5.f$0(<stdin>:1)
        at org.python.pycode._pyx5.call_function(<stdin>)
        at org.python.core.PyTableCode.call(PyTableCode.java:165)
        at org.python.core.PyCode.call(PyCode.java:18)
        at org.python.core.Py.runCode(Py.java:1204)
        at org.python.core.Py.exec(Py.java:1248)
        at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:181)
        at
org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:
89)
        at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:
70)
        at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:
46)
        at org.python.util.InteractiveConsole.push(InteractiveConsole.java:
110)
        at
org.python.util.InteractiveConsole.interact(InteractiveConsole.java:
90)
        at org.python.util.jython.run(jython.java:316)
        at org.python.util.jython.main(jython.java:129)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException:
Could not locate clojure/core__init.class or clojure/core.clj on
classpath:
        at clojure.lang.RT.<clinit>(RT.java:305)
        ... 21 more
Caused by: java.io.FileNotFoundException: Could not locate clojure/
core__init.class or clojure/core.clj on classpath:
        at clojure.lang.RT.load(RT.java:412)
        at clojure.lang.RT.load(RT.java:381)
        at clojure.lang.RT.doInit(RT.java:416)
        at clojure.lang.RT.<clinit>(RT.java:302)
        ... 21 more

java.lang.ExceptionInInitializerError:
java.lang.ExceptionInInitializerError

   Any clues?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to