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

Problem with java.xml.bind and Java 11 #198

Open
mfikes opened this issue Oct 9, 2018 · 2 comments
Open

Problem with java.xml.bind and Java 11 #198

mfikes opened this issue Oct 9, 2018 · 2 comments

Comments

@mfikes
Copy link

mfikes commented Oct 9, 2018

$ re-natal --version
0.9.0
$ java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment AdoptOpenJDK (build 11+28-201810021910)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11+28-201810021910, mixed mode)
$ re-natal init FooApp
Creating FooApp
☕  Grab a coffee! Downloading deps might take a while...
Creating Leiningen project
Updating Leiningen project
Creating React Native skeleton.
Creating Re-Natal config
Compiling ClojureScript
Command failed: lein prod-build
$ cd foo-app
$ lein prod-build
Compiling ClojureScript...
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.bind not found
Error encountered performing task 'cljsbuild' with profile(s): 'prod'
Subprocess failed
$ grep java.xml.bind project.clj
            :jvm-opts ["-XX:+IgnoreUnrecognizedVMOptions" "--add-modules=java.xml.bind"]
@mfikes
Copy link
Author

mfikes commented Oct 14, 2018

If the :jvm-opts is instead replaced with [] (perhaps conditionally under JDK 11?), then another thing that would be needed is http-kit 2.3.0 in the mix, which nicely cleans things up via http-kit/http-kit#356. In order to get this, we would want Figwheel 0.5.16 for bhauman/lein-figwheel@6fb3359 (we'd need to sort out #190) (or alternatively, we could just explicitly depend on http-kit 2.3.0 in order to override the older Figwheel dep we are currently getting)

dotemacs added a commit to dotemacs/re-natal that referenced this issue Oct 16, 2019
It got raised here:
drapanjanas#225
and here:
drapanjanas#198

The extra '=', raises an error, hence the removal.
@Jeel-Shah
Copy link

I had a similar problem. I was able to resolve the problem by following #228 which is to replace = by a space in
:jvm-opts ["-XX:+IgnoreUnrecognizedVMOptions" "--add-modules=java.xml.bind"].

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

2 participants