Questions tagged [java-9]

Use this tag for questions specific to Java 9, which is version 9 of the Java platform, released on the 21st of September 2017. In most cases you should also specify the java tag.

Oracle has released its updated list of proposed or targeted Java 9 enhancements. In addition to previously confirmed Java modularity updates, the most recent list includes a common logging system for all JVM components (JEP 158), more HotSpot JIT compiler controls (JEP 158), and refinements to improve the efficiency of garbage collection (JEP 214), and repair issues introduced by Project Coin language updates in JDK 7 (JEP 213). This is also the first release under the new version-string schema (JEP 223) and will hence be officially be numbered 9, not "1.9.0" as was the case for earlier versions.

Even with delays, Oracle has been steadily moving forward with its plans to modularize the JDK. But the scope of Java modularity took a step up in September, when Oracle announced four new JEPs, including JEP 220: Modular Run-Time Images. Ben Evans, writing for InfoQ, noted that swapping JARs for modules is the "point of no return for modularity," with serious implications for IDEs, toolmakers, and many Java application frameworks:

After this point, The Java Runtime Environment (JRE) will no longer be contained in jar files, and instead will be composed of modules (JSR 376). Files such as rt.jar and tools.jar no longer exist in the JRE. The platform will continue to accept and run applications and libraries packaged in conventional jar files, modular jar files, or in the new module file format. The intention is that over time, application developers wil migrate to the new modular formats as well.

See "Oracle Commit to Java Modularity" for more from Ben Evans on modularity updates in Java 9. Also see Takipi Blog: "Java 9 – The Ultimate Feature List" for a comprehensive (as of November 20, 2014) description of new features accepted or proposed for the next major release of Java, and "What's New in Java 9? (Besides Modules)" for another more recent compilation of features.

The API documentation of the release can be accessed at Oracle's technetwork.

1606 questions
0
votes
1 answer

Confusion with the version history of Java

I am newbie in Java, sorry for this question but I have not a good answer to my questions regarding to this issue. 1) I look at Java SE versions history and see the versions seems to come from Java SE versions. Is the Java language version is…
Jack
  • 1
  • 21
  • 118
  • 236
0
votes
1 answer

How to upgrade javax.naming.* and javax.xml.* imports to be compatible with java 10

I have a java project built with maven and jdk 1.8. Some classes use javax.naming.* and javax.xml.* classes in the jdk. From Java 9 onwards those javax packages have been removed from the jdk. So how do I upgrade the project to run on java 9 or…
tharinduwijewardane
  • 2,593
  • 2
  • 16
  • 28
0
votes
0 answers

how to override method in other module in Java 9

In my JUnit tests, I need to override some public method behavior from class A (module M1). For that, I am doing something similar to that (in JUnit module M2): package com.acme; public class B extends A{ @Override public String…
0
votes
0 answers

Default Common FJThread pool vs custom FJ Pool

I have an I/O operation which is to be made multithreaded. Its a recursive algorithm where a task spawns more of the subtasks in recursion. I read that FJ pool can be used for recursive tasks, so thereby tried 2 things that uses FJ Pool. 1 Parallel…
vippu
  • 13
  • 7
0
votes
0 answers

JDK8 RMI server not working in JDK9 or JDK10 - ClassNotFoundException

I have a very simple RMI client/server application that has been working perfectly well on different versions of JDK, up to JDK8. All of a sudden, it does not work anymore after updating to JDK9 or JDK10. There must be some change in JKD9 and…
ardot
  • 1
  • 2
0
votes
0 answers

Can't use jcl-over-slf4j in Java 9

I've problem replace commons-logging with jcl-over-slf4j in Java 9 Module System. I've exclude commons-logging from maven and add jcl-over-slf4j as dependency: org.apache.commons
0
votes
1 answer

How to enforce module boundaries in Java <= 8

I want to modularize a monolithic application by using Java modules (introduced by Project Jigsaw). Unfortunately I'm currently stuck to use Java 8. I would like to build those modules (jar files) anyway, but without the feature of using a…
Oliver
  • 353
  • 1
  • 4
  • 16
0
votes
1 answer

Any source code example to load property file from src/main/resources in Java 9+ as module

I am migrating Java 8 application to JDK11 (early access). New code suppose to be a module. It read an error message from property file in Java8, but return 'null' in Java 11. Any help how to load/read resourceInputStream from…
0
votes
1 answer

Data bus with Java Flux API

I was researching the Java Flux API when I noticed from some tutorials that you can only subscribe to one publisher. Yet, I see a use-case where having multiple publishers to a single subscribe is useful: some sort of a data/message bus. The only…
taigi100
  • 2,609
  • 4
  • 23
  • 42
0
votes
1 answer

Cant' compile AspectJ with IntelliJ and OpenJDK 9

We are using AspectJ 1.9.1. We compile our code in two ways: 1. using Apache Ant 1.10.2 2. using IntelliJ 2008.2 Pro. In IntelliJ we have been using OpenJDK 8 as the SDK, and everything including our ApspectJ aspects compile just fine and we are…
adamretter
  • 3,885
  • 2
  • 23
  • 43
0
votes
1 answer

JDK 9 Compatibility

Currently, I have a JavaFX project running on JDK8 b181. The EJB's are also built on JDK8 b181 platform and deployed as an EAR on WebLogic 12.2.1. Everything works perfectly on NetBeans 8.2. Now that we have decided to move everything to JDK9, I am…
Sirish V
  • 930
  • 2
  • 12
  • 24
0
votes
0 answers

Jigsaw hot reload

As I understand Java 9 modules are all about encapsulation and shading. Will they be about hot code reload too? As for me it looks like the future is not supposed to be ever implemented. Because it neither follow OSGI way (all Java 9 modules use…
VB_
  • 45,112
  • 42
  • 145
  • 293
0
votes
2 answers

Migrating Applet application to Java 11

I have a application built on Java Applets, Swing and AWT. I want to migrate the source code to Java 11. Java 11 Applets will not be supported, and even JavaWebStart is being removed. So I have below questions 1) how should I migrate my…
Deepti
  • 85
  • 1
  • 11
0
votes
1 answer

I have stored all the jar file into specific folder. How to configure specific folder to Jshell classpath ?

I have stored all the jar file into specific folder and I have added specific folder to Jshell classpath. I am unable to import packages in jshell after adding classpath. It is working fine If I have mentioned all the jar file name in classpath. I…
poovaraj
  • 609
  • 1
  • 6
  • 10
0
votes
1 answer

WLS 12.2.1.3 ConnectException

I have a WLS 12c (12.2.1.3) Instance, which runs on Java 9. Additional i have also a webstart application (Java 9). Both runs on localhost. I can start the application without problems but when i want to connect as an user, i will become a exception…