aws-samples / aws-samples/aws-java-sample

Maven error and javax.xml.bind.DatatypeConverter with jdk10

未关闭
#24 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
241
派生
345
PR 合并指标
30 天内没有已合并 PR

描述

If you get the error
maven Source option 5 is no longer supported. Use 6 or later. [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.

Add the following to the properties
1.6
1.6

That fixes the problem for jdk8.

For jdk10
The example builds but gives a runtime exception
An exception occured while executing the Java class. null: InvocationTargetException: javax/xml/bind/DatatypeConverter: javax.xml.bind.DatatypeConverter

as javax.xml.bind.DatatypeConverter is removed in JDK9 onwards

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。