Fork me on GitHub
#reveal
<
2021-04-26
>
vlaaad05:04:59

@onetom Reveal should work with java 8. Do you use tools-deps? You might need to remove .cpcache for tools-deps to recalculate dependencies when switching between java versions

onetom05:04:42

indeed, i haven't thought about removing the .cpcache. i'll give it a try after lunch. thx!

frankitox12:04:13

Just yesterday I tried reveal with Oracle's JDK 8 (If you like OpenJDK you could try Zulu's build)

onetom03:04:56

so it worked as expected? which zulu version have u used? as u see from my earlier message, i tried with /nix/store/yhkh174cix87b5yfxsqvplpmvnbkx878-zulu1.8.0_202-8.36.0.1/bin/java (i haven't tried the rm .cpcache yet, so im still not sure if that would solve my problem)

vlaaad07:04:53

A bit of context: java 8 had javafx built in, and it’s distributed as separate artifact only since java 11. Because of that, cljfx (that reveal is built on) uses maven magic to depend on openjfx only if jdk is 11 or later. If you use JDK 8, you need to have a distribution with javafx built in (some jdk 8 distributions exclude javafx). Wiping out .cpcache is needed because of the maven magic — tools-deps assume resulting classpath is a function of explicitly specified deps, but in case of cljfx it’s explicitly specified deps+currently used jdk

👍 5
frankitox18:04:03

I didn't try Zulu's, but I think that's the one Sean is using (Oracle's JDK is working for me).