-
Notifications
You must be signed in to change notification settings - Fork 287
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
Tutorial1 - Class not found Exception #444
Comments
Are you using JDK 9? It's an error specific to JDK 9 as I can see from the stacktrace. It should work on JDK8. Can you add the info regarding |
You can try adding the jvm opts to resolve this in JDK 9 if you cannot switch to JDK 8. Refer : http-kit/http-kit#356 (comment) and https://www.deps.co/blog/how-to-upgrade-clojure-projects-to-use-java-9/ |
|
Thanks. You can try switching to JDK 8 for now or add the jvm-opts as mentioned. I am still not sure about the dependency that causes this error. |
I can fix this problem with adding environment variable, BOOT_JVM_OPTIONS="--add-modules=java.xml.bind" |
I fixed this by adding So I went from: (set-env!
:source-paths #{"src/cljs"}
:resource-paths #{"html"}
:dependencies '[[adzerk/boot-cljs "2.1.4"]])
(require '[adzerk.boot-cljs :refer [cljs]]) to: (set-env!
:source-paths #{"src/cljs"}
:resource-paths #{"html"}
:dependencies '[[org.clojure/clojurescript "1.10.238"]
[adzerk/boot-cljs "2.1.4"]])
(require '[adzerk.boot-cljs :refer [cljs]]) I also tried your suggestion nouse and couldn't fix it by adding that line to boot.properties. |
Whoah, nice. Still had to do this but now it's working. |
Just to confirm that the suggested solution to change dependencies to :dependencies '[[org.clojure/clojurescript "1.10.238"]
[adzerk/boot-cljs "2.1.4"]]) works for java 11 as well |
Just for clarification, is the solution to use a newer version of cljs? |
looks like it |
To fix (this and future tutorial issues) I updated dependencies to include http-kit, cider/piggieback,nrepl and other dependency versions.
Also note one needs to update boot.properties like below:
|
exception below
The text was updated successfully, but these errors were encountered: