emezeske / lein-cljsbuild

Leiningen plugin to make ClojureScript development easy.
Other
1.1k stars 151 forks source link

Fails on Java 9? #483

Closed rnikander closed 6 years ago

rnikander commented 6 years ago

Is lein-cljsbuild supposed to work on Java 9? It works fine on Java 8, but if I use Java 9 I get the error below. (I'm on macOS.)

$ lein cljsbuild once
Compiling ClojureScript...
Compiling 17 source files to /Users/rob/.../target/default/classes
Exception in thread "main" java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(cljs/util.cljc:1:1)
   at clojure.lang.Compiler.load(Compiler.java:7526)
   at clojure.lang.RT.loadResourceScript(RT.java:379)
   at clojure.lang.RT.loadResourceScript(RT.java:370)
   at clojure.lang.RT.load(RT.java:460)
   at clojure.lang.RT.load(RT.java:426)
danielcompton commented 6 years ago

Hi @rnikander there are a few things you need to do to get ClojureScript projects working with Java 9, this isn't a cljsbuild bug. See https://www.deps.co/blog/how-to-upgrade-your-clojure-projects-to-use-java-9/ for more details.

rnikander commented 6 years ago

Thank you for the info. Closing.