This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-03
Channels
- # announcements (11)
- # atom-editor (8)
- # aws (16)
- # babashka (34)
- # beginners (59)
- # calva (32)
- # cider (8)
- # clj-kondo (43)
- # cljs-dev (52)
- # clojure (26)
- # clojure-europe (11)
- # clojure-italy (2)
- # clojure-nl (5)
- # clojure-spec (16)
- # clojure-uk (44)
- # clojurescript (5)
- # core-async (21)
- # cursive (14)
- # datomic (53)
- # figwheel-main (4)
- # fulcro (5)
- # graphql (6)
- # java (3)
- # kaocha (5)
- # leiningen (6)
- # local-first-clojure (1)
- # malli (25)
- # off-topic (40)
- # other-languages (1)
- # pathom (5)
- # pedestal (3)
- # re-frame (4)
- # reitit (2)
- # reveal (8)
- # rum (21)
- # sci (16)
- # shadow-cljs (90)
- # spacemacs (8)
- # tools-deps (10)
- # vrac (6)
- # xtdb (12)
Howdy, is there a way to compile clojure code into Java 7 class format? Asking because for an obscure reason I still need to run JDK7 on some services and I get the following error: java.lang.UnsupportedClassVersionError: check_jmx/core : Unsupported major.minor version 52.0
.
Note that I already tried tweaking :javac-opts
in project.clj
, according to the sample file this only impact java sources, not clojure.
This is not a property you can change - Clojure always compiles to Java 8 bytecode.
You could use an older version of Clojure though
Versions prior to Clojure 1.10 used Java 6 bytecode