Fork me on GitHub

First release of deps-try: Quickly try out dependencies on rebel-readline.

$ clojure -A:deps-try clj-time
[Rebel readline] Type :repl/help for online help info
Loading dependency clj-time RELEASE
[deps-try] Dependencies loaded.

👍 56

> I have java10 installed which apparently doesn’t have javax.xml.bind.DatatypeConverter (quote @dcreno) Since this is an issue people keep running into it's good to know that you can solve this by adding an external dependency, [javax.xml.bind/jaxb-api "2.3.1"]. This also fixes this issue for Java 9 (so no need for --add-modules) and works on older javas as well.


In my experience it's often only javax.xml.bind.DatatypeConverter/printBase64Binary that is used which can also be replaced with

(.encodeToString (java.util.Base64/getEncoder) ~unencoded)
Of course Arne's approach may be more suitable in situations where the code cannot be changed easily.


If it's your own code then you probably know how to fix this, but there's quite a bit of libraries out there that use these classes but don't declare the dependency. Note that ClojureScript used to be in this category, but has removed its use of java.xml.bind in recent versions.


Could you share which library used the xml.bind stuff so I can take a look and maybe open a PR?

David Reno12:11:51

I hit it trying to run ‘cljr-add-project-dependency’


Fulcro 2.6.17 Released on clojars. This is a minor bug fix release that corrects a bug that could lose the “trailing frame” on refreshes when they come too rapidly.

👌 20