This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-02
Channels
- # ai (1)
- # aleph (16)
- # announcements (1)
- # architecture (51)
- # babashka (32)
- # beginners (27)
- # calva (3)
- # clerk (1)
- # clojure (49)
- # clojure-art (1)
- # clojure-denver (6)
- # clojure-europe (70)
- # clojure-nl (1)
- # clojure-norway (56)
- # clojure-uk (2)
- # clojuredesign-podcast (4)
- # clojurescript (57)
- # clr (15)
- # community-development (3)
- # conjure (1)
- # core-async (10)
- # data-science (1)
- # datalog (2)
- # datomic (3)
- # emacs (12)
- # events (1)
- # gratitude (4)
- # honeysql (9)
- # hyperfiddle (86)
- # jobs (4)
- # off-topic (10)
- # pedestal (5)
- # portal (11)
- # practicalli (2)
- # reitit (7)
- # releases (3)
- # remote-jobs (1)
- # sql (15)
- # tools-build (8)
- # xtdb (4)
EDITED: See thread... new question : should the tools.build example in the documentation use --release and not -source/-target ?
Can I safely ignore warnings regarding "`system modules path not set in conjunction with -source 11"` or "bootstrap class path not set in conjunction with -source 8"
when using tools.build javac
with either _:javac-opts_ ["-source" "11" "-target" "11"]
or _:javac-opts_ ["-source" "8" "-target" "8"]
? Should I manually switch to the correct version of java as part of my build, and then use that? I'm using openjdk 17 but want to build a library made up of Java and Clojure code that targets 11 and above.
I realise that this is more of a Java question than a Clojure/tools.build question, but I used to compile my Java sources in a separate project using maven, and don't recall having this warning.
Typical, I post to slack and then work out the answer.
I appear to have fixed the issue with using --release instead of -source and -target. This apparently is better for cross-compilation. Should the tools.build docs use --release and not -source and -target as per https://stackoverflow.com/a/43103038 ?
I think the small issue is that java 8's javac is still -source and -target
but probably time to assume newer
Thank you