Hey all. First of all, thanks for the clojure deps edn project - I migrated from Sean Corfield's one last evening and really appreciate the work you put into it.
I do however seem to have trouble with launching REBL under java 8 on a mac. I'm following the instructions in the deps.edn saying ;; - OpenJDK 8 or 11 -- use :inspect/rebl
Here's what I get:
$ clj -M:inspect/rebl
Clojure 1.10.1
user=> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:382).
netscape.javascript.JSObject
Full report at:
/var/folders/yq/pzs9fnnj5g715j73kxglggcjtyvz55/T/clojure-8754450865959351645.edn
System details are:
$ java -version
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (build 1.8.0_275-bre_2020_11_16_16_29-b00)
OpenJDK 64-Bit Server VM (build 25.275-b00, mixed mode)
$ clojure -Sdescribe
{:version "1.10.1.739"
:config-files ["/usr/local/Cellar/clojure/1.10.1.739/deps.edn" "/Users/ikoszo/.clojure/deps.edn" ]
:config-user "/Users/ikoszo/.clojure/deps.edn"
:config-project "deps.edn"
:install-dir "/usr/local/Cellar/clojure/1.10.1.739"
:config-dir "/Users/ikoszo/.clojure"
:cache-dir "/Users/ikoszo/.clojure/.cpcache"
:force false
:repro false
:main-aliases ""
:repl-aliases ""}
$ clj -R:inspect/rebl -C:inspect/rebl -Stree
-R is deprecated, use -A with repl, -M for main, or -X for exec
-C is deprecated, use -A with repl, -M for main, or -X for exec
org.clojure/data.json 1.0.0
org.clojure/clojure 1.10.1
org.clojure/core.specs.alpha 0.2.44
org.clojure/spec.alpha 0.2.176
org.openjfx/javafx-swing 11.0.1
org.openjfx/javafx-swing$mac 11.0.1
org.openjfx/javafx-graphics 11.0.1
org.openjfx/javafx-graphics$mac 11.0.1
org.openjfx/javafx-controls 11.0.1
org.openjfx/javafx-controls$mac 11.0.1
org.yaml/snakeyaml 1.27
com.cognitect/rebl 0.9.241
cljfmt/cljfmt 0.6.8
org.clojure/tools.cli 0.4.2
rewrite-clj/rewrite-clj 0.6.1
com.googlecode.java-diff-utils/diffutils 1.3.0
org.clojure/tools.reader 1.3.2
rewrite-cljs/rewrite-cljs 0.4.4
org.clojure/data.csv 1.0.0
org.openjfx/javafx-base 11.0.1
org.openjfx/javafx-base$mac 11.0.1
org.openjfx/javafx-web 11.0.1
org.openjfx/javafx-media 11.0.1
org.openjfx/javafx-media$mac 11.0.1
org.openjfx/javafx-web$mac 11.0.1
org.openjfx/javafx-fxml 11.0.1
org.openjfx/javafx-fxml$mac 11.0.1
org.clojure/core.async 1.3.610
org.clojure/tools.analyzer.jvm 1.1.0
org.clojure/tools.analyzer 1.0.0
org.ow2.asm/asm 5.2
org.clojure/core.memoize 1.0.236
org.clojure/core.cache 1.0.207
org.clojure/data.priority-map 1.0.0
So far I tried openjdk@8
, adoptopenjdk/openjdk/adoptopenjdk8
and zulu8
openjdks from brew, no luck with either of them.
Hmm. Reading up on it, openjfx doesn't seem to be compatible with java 8
@imre
clojure -M:inspect/rebl-java8
to run REBL with Java 8 - tested with OpenJDK and should work with Oracle Java.
https://github.com/practicalli/clojure-deps-edn#cognitect-rebl
JavaFX is already included with Java 8, it was separated out in Java 8. The :inspect/rebl
included java 11 libraries.
If the docs are misleading, then apologies and I'll check and update them now.
I'm afraid it doesn't work with openjdk8 for me that way either:
$ java -version
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (build 1.8.0_275-bre_2020_11_16_16_29-b00)
OpenJDK 64-Bit Server VM (build 25.275-b00, mixed mode)
$ clj -M:inspect/rebl-java8
Clojure 1.10.1
user=> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:382).
netscape.javascript.JSObject
Full report at:
/var/folders/yq/pzs9fnnj5g715j73kxglggcjtyvz55/T/clojure-2925724931719686732.edn
the only jdk 8 I was able to get it working with was oracle's
I'll send a PR to update the comment in deps.edn
Ah yes, the https://github.com/practicalli/clojure-deps-edn/blob/live/deps.edn#L373-L379 notes were a little out of date, thanks for highlight this. The notes have been updated.
Thanks for the feedback. It has been a few months since I used REBL, so this is useful to know there are issues.
Oh I see you updated it already
I'll make a note that it may only work on Oracle 8. I will do some testing at the weekend, and see if I can get it working on OpenJDK 8. Thank you.
https://github.com/practicalli/clojure-deps-edn/pull/11 for now.
If you do get it working with OpenJDK8, I'd be interested to know how. Thank you.
I will mention you in a comment here in Slack if I get it working. Thanks.
Today I am hosting the SciCloj meeting where we talk about data science. We will be doing some collaborative coding using a remote server and using various editors to group code. Should be an interesting experiment. I've started a doc on how to set up a shared remote server and use SSH tunnelling to connect to the REPL and collaborate on the code. https://practicalli.github.io/data-science/collaborative-coding/shared-server.html
I finally got an elegant solution to the "Series" challenge on http://Exercism.io. It didnt take too long to come up with an answer, but it wasnt as nice as I wanted. But have finally refactored it to be some elegant code, I hope you agree (or can suggest anything nicer) in the Live broadcast tomorrow. Broadcast - Saturday 09:00 UTC (United Kingdom time) - oh, its in 10 hours... https://youtu.be/tPs7GYKE1sE