Fork me on GitHub
#leiningen
<
2017-09-22
>
jumar09:09:36

has anyone already tried to run leiningen with recently released java 9? 1. I tried to edit lein script for my current stable lein 2.7.1 installation to include this LEIN_SKIP_BOOTCLASSPATH thing: https://github.com/technomancy/leiningen/commit/151fbb256dd2919fb5d3a51136e8d441802267b2 but no success

lein repl
Exception in thread "main" java.lang.ClassNotFoundException: sun.misc.Launcher, compiling:(dynapath/defaults.clj:29:3)
2. I've also tried to download 2.8.0-RC1 release: https://raw.githubusercontent.com/technomancy/leiningen/2.8.0-RC1/bin/lein However, no success again (run lein repl in project using clojure 1.9.0-beta1):
lein repl
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by dynapath.defaults$eval380$fn__381 to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of dynapath.defaults$eval380$fn__381
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Tried to load org.tcrawley/dynapath version 0.2.3 but 0.2.5 was already loaded.
Java HotSpot(TM) 64-Bit Server VM warning: Unable to open cgroup memory limit file /sys/fs/cgroup/memory/memory.limit_in_bytes (No such file or directory)
Compiling 1 source files to /Users/jumar/workspace/clojure/clojure-repl-experiments/target/default+repl/classes
Java HotSpot(TM) 64-Bit Server VM warning: Unable to open cgroup memory limit file /sys/fs/cgroup/memory/memory.limit_in_bytes (No such file or directory)
Exception in thread "main" java.lang.ClassNotFoundException: sun.misc.Launcher, compiling:(dynapath/defaults.clj:29:3)

jumar09:09:39

I've also tried to remove everything from my ~/.lein/profiles.clj and generate new empty project. I ended up with this error:

nREPL server started on port 64092 on host 127.0.0.1 - 
java.lang.IllegalStateException: Could not find a suitable classloader to modify from clojure.lang.LazySeq@d35aa420
 at cemerick.pomegranate$add_classpath.invokeStatic (pomegranate.clj:54)
(Both with clojure 1.8.0 and 1.9.0-beta1)

noisesmith11:09:26

I was told that if you upgrade to the latest lein and use clojure 1.9 it should all work (haven't been able to check myself)

jumar12:09:17

I switched back to java 1.8.131 for a while. I'll try again in few days or weeks:).