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

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

Aperta
#24 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
241
Fork
345
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.