Top "Java-9" questions

Use this tag for questions specific to Java 9, which is version 9 of the Java platform, released on the 21st of September 2017.

Java 9 HttpClient send a multipart/form-data request

Below is a form: <form action="/example/html5/demo_form.asp" method="post" enctype=”multipart/form-data”> <input …

java http multipartform-data http2 java-9
Set JVM option for avoid error Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1

I use Spring Boot 2.0.0.RC1, JDK 9.0.4, IntelliJ IDEA 2017.3.4 Ultimate, Gradle 4.5.1 . Spring Boot RC1 version (strictly, Spring Framework 5.0.3.RELEASE) has a …

java spring-boot intellij-idea java-9 cglib
JDK9 and maven-jar-plugin

I just upgraded my Java8 project with the brand new official release of Java9. The project uses a Maven plugin, …

java maven java-9 maven-jar-plugin
Java 9 + maven + junit: does test code need module-info.java of its own and where to put it?

Let's say I have a Java project using Maven 3 and junit. There are src/main/java and src/test/java …

java maven junit java-9 java-module
How do I add modules to the Eclipse Oxygen module path for a project?

I have a project that today has several jars as "Referenced Libraries". I'd instead like to add these as automatic …

java eclipse java-9 eclipse-oxygen module-path
Declare maven dependency on tools.jar to work on JDK 9

I have a project that uses this technique that work fine in JDK 8 and older. However, in JDK 9 this jar …

java maven java-9 tools.jar
What's the difference between requires and requires transitive statements in Java 9?

What's the difference between requires and requires transitive module statements in module declaration? For example: module foo { requires java.base; …

java java-9 java-module requires module-info
JAXB not available on Tomcat 9 and Java 9/10

TLDR: On Java 9/10, a web app in Tomcat has no access to JAXB even though its reference implementation is present …

java tomcat java-9 java-10
Accessing resource files from external modules

So far until non-modularized java, you would simply put a file in src/main/java/resources make sure it is …

java java-9 java-platform-module-system
Loading classes and resources in Java 9

I was reading this article on InfoQ quoting Reinhold: Developers can still use the Java class path in Java 9 for …

java spring-boot java-9 java-platform-module-system module-path