I try to run kotlinc-js under Java 9 and get: java...
# javascript
a
I try to run kotlinc-js under Java 9 and get: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter. I know this is because the module java.xml.bind is not included by default in Java 9. How can I resolve this?
k
Wait until we fix this issue. Or switch back to Java 8
a
Thanks! Is there a way to pass JVM args to the compiler?
--add-modules java.xml.bind could be a temporary workaround
k
I don't know
It depends on a particular build system. For example, Gradle runs compiler via daemon, and there's no simple ways to pass args there
I think you can always define your own
_JAVA_OPTIONS
, this used to work for Oracle JVM
a
Thanks for the hint. I will try some things.
I managed to work around my issue using _JAVA_OPTIONS, but encountered another one when running the compiler. https://youtrack.jetbrains.com/issue/KT-20653 in case you are interested.