Declare maven dependency on tools.jar to work on JDK 9
Your problems are caused by the Project Jigsaw changes that went into the Java 9 EA build you seem to have used. JEP 220 describes them. The section Removed: rt.jar and tools.jar describes this in more detail but Risks and Assumptions contains a good summary: JDK and JRE images will, as noted above, no longer … Read more