leiningen 2025-01-20

Hi there, was trying to startup an old project that's using leiningen, and the classpath does not get set.

lein classpath shows a classpath

but if I launch a repl (say with lein repl) and then run (clojure.java.classpath/classpath) it returns an empty sequence

clojure 1.10.3, lein 2.11.2, OpenJDK 17.0.13

any ideas why this would be?

What does (System/getProperty "java.class.path") show in the REPL?

it shows a really long string with the classpath in it

OK, so it's potentially a problem with the version of java.classpath on the combination of versions you have there. That's some dependency you've added right? It's not loaded with lein...

FWIW, I tried it with Leiningen 2.11.2 and Clojure 1.10.3, but with JDK 23. It seemed to work fine with the latest version of org.clojure/java.classpath

Thanks for the info. Ill try some version changes and different combinations and see what I can discover.