-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Java Version
John Thompson edited this page Jan 20, 2019
·
1 revision
Majority of the course has been developed on Java 8. The course is being updated to Java 11.
If you wish to use Java 9 or higher, please modify the following:
Note: If you are on Java 9, or Java 10 you should consider updating to Java 11.
Update your Maven POM properties to reflect the Java version.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>11</java.version>
<jaxb.version>2.3.0</jaxb.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
The JAXB API is no longer included with Java in Java 9 and higher. You will need to add this dependency as follows:
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>${jaxb.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>${jaxb.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${jaxb.version}</version>
</dependency>
No. Open JDK should work just as well.
No, the Oracle JDK is free to use for development.