To JAR Hell And Back - A Live Migration to the Java 9
summary
A demo monolithic app is migrated to Java 9 and made to compile test and run by replacing sun misc Base64 with java.util.Base64, using jaidev's to find internal API uses, updating Mockito/byte‑buddy, and adding JVM flags like --add-modules, --patch-module and --add-opens to re-enable Java EE packages and resolve a split packages conflict via patching. A URLClassLoader-based hot‑plug fails because the system class loader is no longer a URLClassLoader, but after fixes the REST endpoint runs successfully on Java 9.
AI-written summary · about
chapters (13)
- 0:00Introduction to Java 9 migration
- 1:10Java module system basics
- 8:12Common Java 9 migration issues
- 20:41Live demo setup
- 21:22Running app on Java 8
- 23:14Switching to Java 9 build
- 26:03Fixing internal API issues
- 29:18Configuring illegal access flags
- 34:04Java EE module problems
- 38:46Solving split package errors
- 44:18Class loader casting failure
- 46:25Runtime module configuration
- 47:29About the speaker








