Fork me on GitHub
#leiningen
<
2019-05-01
>
ghadi00:05:41

sigh, this is a stupid hack lein put in to make startup faster

ghadi00:05:52

@nikp do you have LEIN_USE_BOOTCLASSPATH set?

ghadi00:05:25

it's been biting people since jdk9 came out

ghadi00:05:21

the jvm-opts doesn't work because it's the lein jvm failing, not the project jvm

ghadi00:05:13

can you dump java -version

ghadi00:05:49

straight jvm or did you jlink it to be smaller?

nikp00:05:55

And interesting, going to try the LEIN_USE_BOOTCLASSPATH. Does it make a difference if it's for a lein plugin or not

ghadi00:05:10

please don't, it isn't relevant after jdk8

ghadi00:05:17

the bootclasspath doesn't exist anymore

nikp00:05:21

Oh I see

nikp00:05:45

don't think I used jlink unless it does it implicitly, it's an install from the arch openjdk package

ghadi00:05:54

that seems normal

ghadi00:05:55

sorry, I'm not sure what's going on

nikp00:05:01

No worries, thanks for trying! Will continue playing around/post if we get anywhere

ghadi00:05:11

Np. Try DEBUG=yes lein and see if something weird is going on

yogthos00:05:45

it looks like the approach would be to load the module at runtime using ModuleLayer

ghadi00:05:55

Shouldn't have to do that. Java.sql is in the base platform

yogthos01:05:33

it's a bit odd, this works fine:

(let [cf (.configuration (java.lang.ModuleLayer/boot))]
  (if (.get (.findModule cf "java.sql"))
    (java.sql.Timestamp. (.getTime (java.util.Date.)))
    (do
      (println "failed to find java.sql module")
      (System/exit 1))))
but doing a require I end up with Caused by: java.lang.ClassNotFoundException: java.sql.Timestamp