Advice from Oracle
Oracle has done a great job in bringing us this major update, version 9, to the Java platform. Their insights into getting ready for Java 9 and how to migrate to the new JDK is worth reviewing. In this section, we will look at preparatory steps, breaking encapsulation, changes to the runtime image, components such as tools and APIs that have been removed, changes to garbage collection, and deployment.
Preparatory steps
Oracle provides a five-step process to help developers migrate their Java applications to version 9. These steps are listed as follows and then covered in subsequent sections:
- Get the JDK 9 early access build.
- Run your program before recompiling.
- Update third-party libraries and tools.
- Compile your application.
- Run
jdeps
on your code.
Getting the JDK 9 early access build
If you are reading this book before Java 9 is officially released, then you can obtain a JDK 9 early access build from here--http://jdk.java.net/9/. Early release builds are available for Windows...