It seems it's not finding the repl.clj file, which would point to an incorrect 
classpath definition.

There's not much we can do to help without access to your project.clj file.

>From the stack trace, it looks like you may have incorrectly configured the 
>source paths (default is "src", I think), or your repl.clj files starts with 
>"(ns cljs.repl".

By default, if your repl.clj files starts with that, the file itself needs to 
be at src/cljs/repl.clj for Java to find it.

> On 26 Jan 2018, at 20:18, Johannes <bra...@nordakademie.de> wrote:
> 
> Is there a way to use leiningen with Clojurescript and Java 9 too.
> 
> If I try this from the Quickstart:
> lein run -m clojure.main repl.clj
> 
> I get the following stack trace ...
> 
> clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could 
> not locate cljs/repl__init.class or cljs/repl.clj on classpath., 
> compiling:(/Users/johannes/tmp/hello_world/repl.clj:1:1)
>  at clojure.lang.Compiler.load (Compiler.java:7391)
>     clojure.lang.Compiler.loadFile (Compiler.java:7317)
>     clojure.main$load_script.invokeStatic (main.clj:275)
>     clojure.main$script_opt.invokeStatic (main.clj:335)
>     clojure.main$script_opt.invoke (main.clj:330)
>     clojure.main$main.invokeStatic (main.clj:421)
>     clojure.main$main.doInvoke (main.clj:384)
>     clojure.lang.RestFn.invoke (RestFn.java:408)
>     clojure.lang.Var.invoke (Var.java:379)
>     clojure.lang.AFn.applyToHelper (AFn.java:154)
>     clojure.lang.Var.applyTo (Var.java:700)
>     clojure.main.main (main.java:37)
> 
> Am Freitag, 26. Januar 2018 14:55:42 UTC+1 schrieb Johannes:
>> 
>> yes, it works!
>> 
>> Thank you
>> 
>> Am Freitag, 26. Januar 2018 13:15:00 UTC+1 schrieb Thomas Heller:
>>> 
>>> You can use it with Java9 today if you add a little flag to the command line
>>> 
>>> Instead of calling
>>> 
>>> java -cp cljs.jar:src clojure.main build.clj
>>> 
>>> you call
>>> 
>>> java --add-modules java.xml.bind -cp cljs.jar:src clojure.main build.clj
>>> 
>>> That should fix it. The Java9 fix was already applied to ClojureScript 
>>> master but it was not released yet. Until then you can just use the flag.
>>> 
>>> 
>>>> On Friday, January 26, 2018 at 10:20:03 AM UTC+1, Johannes wrote:
>>>> Indeed, I updated to Java 9 a few day ago. Until now I didn't get any 
>>>> problems using Clojure with Java 9. I seems I have to wait for a Java 9 
>>>> compatible version of Clojurescript.
>>>> 
>>>> Am Freitag, 26. Januar 2018 01:30:34 UTC+1 schrieb Phill Wolf:
>>>>> 
>>>>> The first sentence of the Quick Start says, "The only dependencies 
>>>>> required for this tutorial are an installation of Java 8 and the 
>>>>> standalone ClojureScript JAR."
>>>>> 
>>>>> The clue "Caused by: java.lang.ClassNotFoundException: 
>>>>> javax.xml.bind.DatatypeConverter" suggests you might be using Java 9.
> 
> -- 
> Note that posts from new members are moderated - please be patient with your 
> first post.
> --- 
> You received this message because you are subscribed to the Google Groups 
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to