Jigsaw and containers

2017-08-31 Thread Daniel Latrémolière
I have a problem to understand new layout of files in JRE/JDK images for the containers use-cases. Containers (Docker, Flatpak) have a notion of single inheritance, where an union FS merge the images of the container with parent containers. This give much smaller images of containers when most

Re: Jigsaw and containers

2017-08-31 Thread Alan Bateman
On 31/08/2017 18:58, Daniel Latrémolière wrote: I have a problem to understand new layout of files in JRE/JDK images for the containers use-cases. Containers (Docker, Flatpak) have a notion of single inheritance, where an union FS merge the images of the container with parent containers. This

Re:

2017-08-31 Thread mandy chung
Hi Nicolai, The `--generate-module-info` and `--generate-open-module` options take an output directory argument and generates module-info.java (source file) in the output directory, one per each specified JAR file on the command-line. I agree that this is not ideal and `--generate-module-dec

Re: Jigsaw and containers

2017-08-31 Thread Daniel Latrémolière
Are you using `jlink` to create a run-time image for each application? (just trying to establish if you are actually running into an issue or not). With jlink per application, all will be working without problems, but each application will have his own copy of JRE and common libraries (big si

Re: Jigsaw and containers

2017-08-31 Thread Remi Forax
Hi Daniel, several points first, the JRE doesn't exist anymore apart for compatibility (the jre is just a bunch of modules) and a jar can be a modular jar, just have a module-info.class in the jar, so applications that uses jars can be modular, they do not have to use jlink. So you can have a j

Re: Jigsaw and containers

2017-08-31 Thread Alan Bateman
On 31/08/2017 19:47, Daniel Latrémolière wrote: Are you using `jlink` to create a run-time image for each application? (just trying to establish if you are actually running into an issue or not). With jlink per application, all will be working without problems, but each application will have

Re: Jigsaw and containers

2017-08-31 Thread Daniel Latrémolière
Hi Rémi, Alan I use already jlink to keep only useful (for me) parts of JRE/JDK, and avoid most big thinks (like Java UI, CORBA, RMI, etc). Modular JAR are officially for migration [1] and are not used by modules from OpenJDK, even when they are pure Java. If they are a definitive target, why i

Re: wscompile issues

2017-08-31 Thread David Holmes
Hi Peter, Moving this over to jigsaw-dev. David On 29/08/2017 3:45 PM, Peter Major wrote: Hi, I'm not quite sure if this is the right mailing list to ask, but I'm wondering whether there is a bug in wscompile in the build 9+181 version. In a project of mine, I have a java ant task calling c

Re: Jigsaw and containers

2017-08-31 Thread dalibor topic
On 31.08.2017 23:05, Daniel Latrémolière wrote: This is easy to be seen in containers, where the file system is usually the merge of multiples layers, like described in this image (from Docker [3]): https://docs.docker.com/engine/userguide/storagedriver/images/overlay_constructs.jpg Then havin