Syntax error (ClassNotFoundException) compiling at (cljfx/coerce.clj:1:1).
rpodgorny opened this issue · 7 comments
probably not a problem in reveal but still... ;-)
radek@prdell ~> clj -Sdeps '{:deps {vlaaad/reveal {:mvn/version "0.1.0-ea13"}}}' -m vlaaad.reveal.repl
Downloading: vlaaad/reveal/0.1.0-ea13/reveal-0.1.0-ea13.pom from clojars
Downloading: cljfx/css/1.1.0/css-1.1.0.pom from clojars
Downloading: cljfx/cljfx/1.6.2/cljfx-1.6.2.pom from clojars
Downloading: vlaaad/reveal/0.1.0-ea13/reveal-0.1.0-ea13.jar from clojars
Downloading: cljfx/cljfx/1.6.2/cljfx-1.6.2-jdk8.jar from clojars
Downloading: cljfx/css/1.1.0/css-1.1.0.jar from clojars
Downloading: cljfx/cljfx/1.6.2/cljfx-1.6.2.jar from clojars
Syntax error (ClassNotFoundException) compiling at (cljfx/coerce.clj:1:1).
javafx.event.EventHandler
Full report at:
/tmp/clojure-1110569930540587772.edn
It looks like you are using java 8 with javafx excluded. In java 8 javafx was a part of a jdk, but there are some jre/jdk distributions that exclude it. Can you try another jdk?
...no success with java 11 nor java 13. :-(
radek@prdell ~> sudo archlinux-java set java-11-openjdk (+00:00:00) 2020-04-10 15:43:17
radek@prdell ~> java --version (+00:00:00) 2020-04-10 15:43:22
openjdk 11.0.6 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10)
OpenJDK 64-Bit Server VM (build 11.0.6+10, mixed mode)
radek@prdell ~> clj -Sdeps '{:deps {vlaaad/reveal {:mvn/version "0.1.0-ea13"}}}' -m vlaaad.reveal.repl (+00:00:00) 2020-04-10 15:43:24
Syntax error (ClassNotFoundException) compiling at (cljfx/coerce.clj:1:1).
javafx.event.EventHandler
Full report at:
/tmp/clojure-5317757824541178033.edn
radek@prdell ~ [1]> sudo archlinux-java set java-13-openjdk (+00:00:01) 2020-04-10 15:43:28
radek@prdell ~> java --version (+00:00:00) 2020-04-10 15:43:34
openjdk 13.0.2 2020-01-14
OpenJDK Runtime Environment (build 13.0.2+8)
OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode)
radek@prdell ~> clj -Sdeps '{:deps {vlaaad/reveal {:mvn/version "0.1.0-ea13"}}}' -m vlaaad.reveal.repl (+00:00:00) 2020-04-10 15:43:36
Syntax error (ClassNotFoundException) compiling at (cljfx/coerce.clj:1:1).
javafx.event.EventHandler
Full report at:
/tmp/clojure-129179817341483807.edn
Hmm, that's strange. Can you share the full report that's at /tmp/clojure-129179817341483807.edn
? Additionally, can you share the output of clj -Sdeps '{:deps {vlaaad/reveal {:mvn/version "0.1.0-ea13"}}}' -Stree
?
Hmm, that's strange. Can you share the full report that's at
/tmp/clojure-129179817341483807.edn
? Additionally, can you share the output ofclj -Sdeps '{:deps {vlaaad/reveal {:mvn/version "0.1.0-ea13"}}}' -Stree
?
{:clojure.main/message
"Execution error (FileNotFoundException) at clojure.main/main (main.java:40).\nCould not locate vlaaad/reveal/repl__init.class, vlaaad/reveal/repl.clj or vlaaad/reveal/repl.cljc on classpath.\n",
:clojure.main/triage
{:clojure.error/class java.io.FileNotFoundException,
:clojure.error/line 40,
:clojure.error/cause
"Could not locate vlaaad/reveal/repl__init.class, vlaaad/reveal/repl.clj or vlaaad/reveal/repl.cljc on classpath.",
:clojure.error/symbol clojure.main/main,
:clojure.error/source "main.java",
:clojure.error/phase :execution},
:clojure.main/trace
{:via
[{:type java.io.FileNotFoundException,
:message
"Could not locate vlaaad/reveal/repl__init.class, vlaaad/reveal/repl.clj or vlaaad/reveal/repl.cljc on classpath.",
:at [clojure.lang.RT load "RT.java" 462]}],
:trace
[[clojure.lang.RT load "RT.java" 462]
[clojure.lang.RT load "RT.java" 424]
[clojure.core$load$fn__6839 invoke "core.clj" 6126]
[clojure.core$load invokeStatic "core.clj" 6125]
[clojure.core$load doInvoke "core.clj" 6109]
[clojure.lang.RestFn invoke "RestFn.java" 408]
[clojure.core$load_one invokeStatic "core.clj" 5908]
[clojure.core$load_one invoke "core.clj" 5903]
[clojure.core$load_lib$fn__6780 invoke "core.clj" 5948]
[clojure.core$load_lib invokeStatic "core.clj" 5947]
[clojure.core$load_lib doInvoke "core.clj" 5928]
[clojure.lang.RestFn applyTo "RestFn.java" 142]
[clojure.core$apply invokeStatic "core.clj" 667]
[clojure.core$load_libs invokeStatic "core.clj" 5985]
[clojure.core$load_libs doInvoke "core.clj" 5969]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.core$apply invokeStatic "core.clj" 667]
[clojure.core$require invokeStatic "core.clj" 6007]
[clojure.main$main_opt invokeStatic "main.clj" 514]
[clojure.main$main_opt invoke "main.clj" 510]
[clojure.main$main invokeStatic "main.clj" 664]
[clojure.main$main doInvoke "main.clj" 616]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.main main "main.java" 40]],
:cause
"Could not locate vlaaad/reveal/repl__init.class, vlaaad/reveal/repl.clj or vlaaad/reveal/repl.cljc on classpath."}}
org.clojure/clojure 1.10.1
org.clojure/spec.alpha 0.2.176
org.clojure/core.specs.alpha 0.2.44
vlaaad/reveal 0.1.0-ea13
cljfx/cljfx 1.6.2
cljfx/cljfx$jdk8 1.6.2
cljfx/css 1.1.0
...hmmm, so it seems the jdk8 is hard-coded somehow. :-(
Oh no, I completely forgot about that part! If you want to use different JDK with clj
, you need to remove .cpcache
produced by clj
after switching the JDK!
my bad. i'm not really familiar with java's and clojure's internals, sorry... ...everything starts after i zapped the cache. closing. thanks!
Good to hear that!