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.

Observer is deprecated in Java 9. What should we use instead of it?

Java 9 came out, and Observer has been deprecated. Why is that? Does it mean that we shouldn't implement observer pattern …

java java-8 deprecated observer-pattern java-9
Can Java 9 run on a 32-bit OS?

Seems there are no 32-bit download packages on Oracle's available download list. UPDATE Can download here: wget --no-check-certificate --no-cookies --header "…

java java-9
What is the difference between List.of and Arrays.asList?

Java 9 introduced new factory methods for lists, List.of: List<String> strings = List.of("first", "second"); What's the …

java list java-9
gradle java9 Could not target platform: 'Java SE 9' using tool chain: 'JDK 8 (1.8)'

I want to use java9 on my gradle project inside eclipse oxygen. When I run: Run as> Gradle Test …

java gradle java-9 eclipse-oxygen
java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter

After installing JDK9, I get this exception when running my Scala projects. Upgrading Scala to 2.12.2 also didn't resolve my problem.

java-9 scala-2.12
How to solve InaccessibleObjectException ("Unable to make {member} accessible: module {A} does not 'opens {package}' to {B}") on Java 9?

This exception occurs in a wide variety of scenarios when running an application on Java 9. Certain libraries and frameworks (Spring, …

java reflection java-9
Unable to export a package from java.base module

Using IDEA-EAP for JDK9 development experiments. I am getting the following error - Error:(3, 20) java: package jdk.internal.misc is …

java java-9 java-platform-module-system java-module module-info
Does Android Studio 3 support Java 9 for Android development? If so, what features of Java 9 are supported?

I'm going to install Android Studio 3 in order to develop an Android application. I'd like to know if it is …

android java-9 android-studio-3.0
Maven compilation issue with Java 9

Trying to compile a Maven project using JDK 9.0.1 I'm facing this stacktrace without much of an explanation: Exception in thread "…

maven java-9
Why does Map.of not allow null keys and values?

With Java 9, new factory methods have been introduced for the List, Set and Map interfaces. These methods allow quickly instantiating …

java dictionary null hashmap java-9