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 摘要。