Re: [ClojureScript] Re: Problems with Clojurescript quickstart — build fails

2018-01-31 Thread Johannes
As described in the section headed "Browser repl" of Quickstart the 
repl.clj file doesn't contain any ns clause and is located in the project 
directory. I can build the repl with

java --add-modules java.xml.bind -cp cljs.jar:src clojure.main repl.clj

instead of 

java -cp cljs.jar:src clojure.main repl.clj

as described in the Quickstart, because of Java 9 incompatibility of 
ClojureScript. The hint I got from Thomas Heller.

In the section headed "Leiningen" Quickstart says
"All the commands above may be executed with the run feature of Leiningen. 
But as described 
lein run -m clojure.main repl.clj
doesn't work. My assumption is that the Java 9 incompatibility is the 
problem again.
Maybe I am wrong.

Johannes

Am Montag, 29. Januar 2018 22:35:02 UTC+1 schrieb Gary Verhaegen:
>
> 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  
> 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 clojurescrip...@googlegroups.com .
> To post to this group, send email to clojur...@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.


Re: [ClojureScript] Re: Problems with Clojurescript quickstart — build fails

2018-01-29 Thread Gary Verhaegen
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  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.


[ClojureScript] Re: Problems with Clojurescript quickstart — build fails

2018-01-27 Thread Alan Moore
I don’t know how far away the next release it but is it worth adding a note to 
this effect to the Getting Started page?

Alan

-- 
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.


[ClojureScript] Re: Problems with Clojurescript quickstart — build fails

2018-01-26 Thread Johannes
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.


[ClojureScript] Re: Problems with Clojurescript quickstart — build fails

2018-01-26 Thread Johannes


Am Donnerstag, 25. Januar 2018 23:14:10 UTC+1 schrieb Johannes:
>
> I'm trying to follow the Clojurescript Quick-Start
>
> I have downloaded the Clojurescript jar as described in the Quick-Start 
> guide.  I have created the files describe there. But when I try to build 
> using the command:
>
> java -cp cljs.jar:src clojure.main build.clj
>
> I get the following stacktrace:
>
>
> Exception in thread "main" java.lang.ExceptionInInitializerError, 
> compiling:(/Users/johannes/tmp/hello_world/build.clj:1:1)
>
> at clojure.lang.Compiler.load(Compiler.java:7391)
>
> at clojure.lang.Compiler.loadFile(Compiler.java:7317)
>
> at clojure.main$load_script.invokeStatic(main.clj:275)
>
> at clojure.main$script_opt.invokeStatic(main.clj:335)
>
> at clojure.main$script_opt.invoke(main.clj:330)
>
> at clojure.main$main.invokeStatic(main.clj:421)
>
> at clojure.main$main.doInvoke(main.clj:384)
>
> at clojure.lang.RestFn.invoke(RestFn.java:408)
>
> at clojure.lang.Var.invoke(Var.java:379)
>
> at clojure.lang.AFn.applyToHelper(AFn.java:154)
>
> at clojure.lang.Var.applyTo(Var.java:700)
>
> at clojure.main.main(main.java:37)
>
> Caused by: java.lang.ExceptionInInitializerError
>
> at java.base/java.lang.Class.forName0(Native Method)
>
> at java.base/java.lang.Class.forName(Class.java:375)
>
> at clojure.lang.RT.classForName(RT.java:2168)
>
> at clojure.lang.RT.classForName(RT.java:2177)
>
> at clojure.lang.RT.loadClassForName(RT.java:2196)
>
> at clojure.lang.RT.load(RT.java:443)
>
> at clojure.lang.RT.load(RT.java:419)
>
> at clojure.core$load$fn__5677.invoke(core.clj:5893)
>
> at clojure.core$load.invokeStatic(core.clj:5892)
>
> at clojure.core$load.doInvoke(core.clj:5876)
>
> at clojure.lang.RestFn.invoke(RestFn.java:408)
>
> at clojure.core$load_one.invokeStatic(core.clj:5697)
>
> at clojure.core$load_one.invoke(core.clj:5692)
>
> at clojure.core$load_lib$fn__5626.invoke(core.clj:5737)
>
> at clojure.core$load_lib.invokeStatic(core.clj:5736)
>
> at clojure.core$load_lib.doInvoke(core.clj:5717)
>
> at clojure.lang.RestFn.applyTo(RestFn.java:142)
>
> at clojure.core$apply.invokeStatic(core.clj:648)
>
> at clojure.core$load_libs.invokeStatic(core.clj:5774)
>
> at clojure.core$load_libs.doInvoke(core.clj:5758)
>
> at clojure.lang.RestFn.applyTo(RestFn.java:137)
>
> at clojure.core$apply.invokeStatic(core.clj:648)
>
> at clojure.core$require.invokeStatic(core.clj:5796)
>
> at cljs.build.api$loading__5569__auto4052.invoke(api.clj:8)
>
> at cljs.build.api__init.load(Unknown Source)
>
> at cljs.build.api__init.(Unknown Source)
>
> at java.base/java.lang.Class.forName0(Native Method)
>
> at java.base/java.lang.Class.forName(Class.java:375)
>
> at clojure.lang.RT.classForName(RT.java:2168)
>
> at clojure.lang.RT.classForName(RT.java:2177)
>
> at clojure.lang.RT.loadClassForName(RT.java:2196)
>
> at clojure.lang.RT.load(RT.java:443)
>
> at clojure.lang.RT.load(RT.java:419)
>
> at clojure.core$load$fn__5677.invoke(core.clj:5893)
>
> at clojure.core$load.invokeStatic(core.clj:5892)
>
> at clojure.core$load.doInvoke(core.clj:5876)
>
> at clojure.lang.RestFn.invoke(RestFn.java:408)
>
> at clojure.core$load_one.invokeStatic(core.clj:5697)
>
> at clojure.core$load_one.invoke(core.clj:5692)
>
> at clojure.core$load_lib$fn__5626.invoke(core.clj:5737)
>
> at clojure.core$load_lib.invokeStatic(core.clj:5736)
>
> at clojure.core$load_lib.doInvoke(core.clj:5717)
>
> at clojure.lang.RestFn.applyTo(RestFn.java:142)
>
> at clojure.core$apply.invokeStatic(core.clj:648)
>
> at clojure.core$load_libs.invokeStatic(core.clj:5774)
>
> at clojure.core$load_libs.doInvoke(core.clj:5758)
>
> at clojure.lang.RestFn.applyTo(RestFn.java:137)
>
> at clojure.core$apply.invokeStatic(core.clj:648)
>
> at clojure.core$require.invokeStatic(core.clj:5796)
>
> at clojure.core$require.doInvoke(core.clj:5796)
>
> at clojure.lang.RestFn.invoke(RestFn.java:408)
>
> at user$eval1.invokeStatic(build.clj:1)
>
> at user$eval1.invoke(build.clj:1)
>
> at clojure.lang.Compiler.eval(Compiler.java:6927)
>
> at clojure.lang.Compiler.load(Compiler.java:7379)
>
> ... 11 more
>
> Caused by: java.lang.ClassNotFoundException: 
> javax.xml.bind.DatatypeConverter
>
> at 
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
>
> at 
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
>
> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
>
> at java.base/java.lang.Class.forName0(Native Method)
>
> at java.base/java.lang.Class.forName(Class.java:375)
>
> at clojure.lang.RT.classForName(RT.java:2168)
>
> at clojure.lang.RT.classForNameNonLoading(RT.java:2181)
>
> at cljs.util$loading__5569__auto268.invoke(util.cljc:9)
>
> at cljs.util__init.load(Unknown Source)
>
> at cljs.util__init.(Unknown Source)
>
> ... 66 more
>
> What is going wrong?
>
> Johannes
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because 

[ClojureScript] Re: Problems with Clojurescript quickstart — build fails

2018-01-26 Thread 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.


[ClojureScript] Re: Problems with Clojurescript quickstart — build fails

2018-01-26 Thread Johannes
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.


[ClojureScript] Re: Problems with Clojurescript quickstart — build fails

2018-01-25 Thread 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.