Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassNotFoundException: javax.xml.bind.* #8

Open
stuartsierra opened this issue Mar 10, 2018 · 1 comment
Open

ClassNotFoundException: javax.xml.bind.* #8

stuartsierra opened this issue Mar 10, 2018 · 1 comment

Comments

@stuartsierra
Copy link

The java.xml.bind package is deprecated in Java 9 and not included in the default classpath. Code which tries to use classes under java.xml.bind.* will throw ClassNotFoundException. For example, from clavatar:

java.lang.ClassNotFoundException: javax.xml.bind.annotation.adapters.HexBinaryAdapter

The fix, as described in How to upgrade your Clojure projects to use Java 9, is to add the JVM option --add-modules "java.xml.bind". In a Leiningen project.clj file, this is:

:jvm-opts ["--add-modules" "java.xml.bind"]

Libraries affected by this:

@ghadishayban
Copy link

ClojureScript used to import that package, fixed as of clojure/clojurescript@544c1b7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant