-
Notifications
You must be signed in to change notification settings - Fork 29
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
Incompatibility with JDK 9 (by of AWS SDK) #58
Comments
@michaelahlers Thanks for providing the information! I will add a link to this issue in the readme. |
Got: `java.lang.NoClassDefFoundError: javax/activation/DataSource` which is why I added `.jvmopts` file and some options in `aptgit.sbt`. Based on: - ohnosequences/sbt-s3-resolver#58 - playframework/playframework#7879 (comment)
This doesn't work for JDK 11 and requires adding jaxb-api dependency manually. |
@Tvaroh would you be able to describe the workaround you did for JDK 11? |
@pjfanning actually it didn't work for me. So my "workaround" is export JAVA_HOME=`/usr/libexec/java_home -v 1.8. |
importing in project/build.sbt worked for me. |
@schneist does it work for multi-module builds? |
sorry I ran into an issue with an aws library being outdated later, and did not continue to investigate. But the ClassNotFoundException was gone for a multi-mode build too. |
Does this work at all for java-11, Adding dependencies as below did not work for me.
|
@franchev your snippet is not sbt - it is maven see #58 (comment) |
This isn't a bug, per se. More of a tip for anyone using Java 9 who's encountered this error:
(Truncated and redacted.)
It's caused aws/aws-sdk-java#1092 and can be easily worked-around thanks to a tip by @jayeshja. In short, passing
--add-modules=java.xml.bind,java.activation
to Java resolves it.Two ways this is accomplished with SBT are:
.sbtopts
file in your project's root with:SBT_OPTS
environment variable with:The text was updated successfully, but these errors were encountered: