Eclipse issue with java 9 and maven

I installed Version: Oxygen.1a Release (4.7.1a) Build id: 20171005-1200 supporting Java 9. With suggested configuratio on eclipse.ini -vm C:\Program Files\Java\jdk-9\bin\javaw.exe --add-modules=ALL-SYSTEM I have developed by java 9 (java 9 modula...
more »

2017-11-04 11:11 (1) Answers

What is an automatic module?

Automatic modules are mentioned many times on stackoverflow but I couldn't find a complete, succinct and self-sufficient definition of an automatic module. So, what is an automatic module? Does it export all packages? Does it open all packages? Does...
more »

2017-10-14 09:10 (3) Answers

Java 9 Modules and JUnit 4

Eclipse oxygen; windows 7; JDK 9 final from 9, 21; JUnit 4.12 and an existing application. As starting point the application can be compiled, executed and all JUnit Tests shows green. Now we use eclipse to generate the file The outc...
more »

2017-09-27 22:09 (3) Answers

JDK 9 + Mac OS + jlink?

I installed the release version of JDK 9 on Mac OS. jshell works great, Jigsaw module support works, but there is no jlink: ➜ java --version java 9 Java(TM) SE Runtime Environment (build 9+181) Java HotSpot(TM) 64-Bit Server VM (build 9+181, mix...
more »

2017-09-25 20:09 (2) Answers

Where to place using Java 9?

I have an OSGI application and I have around 30 bundles (jar files). Today I decided to see how it works/if it works with Java 9. So I started my application and got WARNING: An illegal reflective access operation has occurred WARNING: Illegal refl...
more »

2017-09-05 20:09 (3) Answers

Why is exporting the entire module not allowed?

In Java 9's module declaration there are 2 constructs: exports; And opens; Where exports grants compile-time access, while opening allows runtime access, as reflection and resources. Opening has one leniency over exporting tha...
more »

2017-07-23 22:07 (1) Answers

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 the Java runtime to search for classes and resource files. It's just that with Java 9's modules, developers no longer need the cl...
more »

2017-07-18 14:07 (1) Answers

Java 9: Exporting packages to unnamed modules fail

I am trying to build an open-source project against Java 9. There are some files which I need to access using reflection but I cannot because the packages are not exported by their modules. I export the packages to unnamed modules by using the argume...
more »

2017-06-26 11:06 (2) Answers

Why did Java 9 introduce the JMOD file format?

Java 9 has three ways to package compiled code in files: JAR JMOD JIMAGE JIMAGE is optimized for speed and space and used by the JVM at runtime so it makes sense why JIMAGE was introduced. JIMAGE files are not supposed to be published to maven r...
more »

2017-06-24 06:06 (1) Answers

unrecognized option : --print-module-descriptor

I am following the steps in Java 9 Jigsaw early access release quick start guide at ➜ tmp java --version java 9-ea Java(TM) SE Runtime Environment (build 9-ea+172) Java HotSpot(TM) 64-Bit Server...
more »

2017-06-04 19:06 (1) Answers

Is there dynamic module discovery in JDK9?

In the upcoming Java 9, is there a way to dynamically discover which modules are available? E.g.: Run some app with some module path While the app is running, add a few more modules into the module path (e.g. copy into module directories) From wit...
more »

2017-06-02 21:06 (2) Answers

Are cycles allowed between platform modules?

This is the module declaration of the java.rmi module: module java.rmi { requires java.base; requires java.logging; exports java.rmi.activation; exports com.sun.rmi.rmid to java.base; // <-- cycle ... } So, there is a cycli...
more »

2017-05-22 06:05 (1) Answers

"Module local" access behaviour in Java 9

As the core of Jigsaw project is Java Module System, it would be nice to have an ability to restrict access to particular program elements (classes, methods and fields) within particular module only. It can be helpful when there are some elements i...
more »

2016-08-11 15:08 (2) Answers