java-platform-module-system Questions

4

I've recently moved to Java 17 and with it came a couple restrictions requiring me to use --add-opens because of one dependency when running my application. I need to add this when the java -jar co...
Jumpy asked 2/12, 2021 at 8:18

25

Solved

This exception occurs in a wide variety of scenarios when running an application on Java 9. Certain libraries and frameworks (Spring, Hibernate, JAXB) are particularly prone to it. Here's an exampl...
Mildredmildrid asked 21/12, 2016 at 14:34

2

Solved

Java 9 (jdk-9+170) does not allow by default an application to see all classes from the JDK, unlike all previous versions of Java, due to the new module system. To workaround this, the java command...

1

I have a modules folder with a content of antlr-runtime-3.5.2.jar antlr4-4.8-1.jar antlr4-runtime-4.8-1.jar byte-buddy-1.10.10.jar classmate-1.5.1.jar cxf-core-3.4.1.jar dom4j-2.1.3.jar FastInfoset...
Micropaleontology asked 23/1, 2021 at 19:1

1

I trying ModuleLayer with JDK 11, I have created two modules Implementation and Model. Consider the Implementation module provides a method which returns an object which is of type Foo, the class F...
Thaumatology asked 26/11, 2022 at 12:14

4

Solved

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...
Trover asked 14/10, 2017 at 7:12

7

Solved

I have the following program: module-info.java module a { } Main.java public class Main { public static void main(String[] args) { System.out.println(sun.nio.ByteBuffered.class); } } This...
Fanestil asked 28/7, 2017 at 9:47

2

Solved

I have a simple hello world project in eclipse that I want to run with java 9. The program runs when I don't have a module-info.java file but when I add that file I get the following error: Error ...
Snorkel asked 27/11, 2017 at 12:48

2

Solved

I have a publicly available Java 8 desktop application complete with MSI installer that I'd like to update to Java 17. The current user experience goes like this: User downloads MSI installer and ...
Wolford asked 23/1, 2023 at 14:54

9

I have a little project which does throw an exception when i let it run. The problem is here (TestObject.java): final JAXBContext jaxbContext = JAXBContext.newInstance(...); I really do not und...
Unbending asked 11/2, 2019 at 13:53

3

Java 9 is scheduled to be released soon (July 27). Are there any plans to release a Java 9 compliant version of Spring projects that will be modular (Java 9 project Jigsaw)?

3

I have an executable Jar which is using reflection in order to access some java internal (actually I am shading some third party library like Netty, DNSJava...) I see that adding this entry to the...
Chiropody asked 15/5, 2019 at 13:34

1

Solved

I'm reading through JDK9 release notes and found a small lack of information. In one of the paragraphs, there is written: The classes in many non-core modules are now defined to the platform class...
Pentheus asked 10/7, 2022 at 9:50

2

Solved

I've got three modules - a main one and two dependencies. All the modules are in the same folder level and are organised in folders ./main, ./first and ./second, correspondingly. The second module ...
Cleodel asked 1/6, 2021 at 20:24

3

Solved

There is an issue with JaCoCo and the MultiRelease JAR files. Since the same class name exist on two places, JaCoCo complains: Caused by: java.lang.IllegalStateException: Can't add different class...
Tortuosity asked 6/12, 2017 at 0:6

4

Does maven have a plugin for the new Java 9 jlink I have searched online but have not been able to find anything official from the maven team.
Melanism asked 5/6, 2017 at 1:35

3

Solved

So Java 9 is there, soon to be followed by Java 10. Time we should make our libraries ready for use in Java 9 projects. I did it in the following way: provide a module-info.java added the (experi...

2

I want to create hello world java 9 application and start it in intellij idea. Now I have following structure: content of inner module-info.java: module my.module.Second { requires my.module.F...

10

Solved

Component Details - Using IntelliJ IDEA 2017.1 CE and jdk-9-ea+154 main() - Set<String> set2 = Set.of("a", "b", "c"); set2.forEach(System.out::println); module-info.java module collecti...

3

Solved

Migrating an old ERP system to JPMS turned out to be highly problematic (Java 11 Eclipse finds automatic module, Maven does not), so I decided to first try and simply replace Java 8 with Java 11, b...
Roshelle asked 3/4, 2019 at 7:55

1

I am migrating a legacy Java 8 project to Java 11. The project is using this class javax.xml.rpc.Service It was being picked up from a library/jar before (I mean in Java 8): jaxrpc.jar But since I'...
Schoolgirl asked 18/1, 2022 at 15:0

3

Solved

This is my base module which needs implementations of interfaces defined in myspi package. Various providers can offer MyProvider implementations. Base module uses them via myspi.MyProvider interfa...

2

Solved

I am creating a modular build (using module-info.java) on GitHub, but when adding a module-info.java to the modules that I want modular, no tests can be executed... How can I achieve this? I am u...
Dicephalous asked 31/8, 2018 at 6:54

2

Solved

I work with some friends on a jdk 10 application which use the jigsaw feature set (introduced in jdk9) and junit5 with maven as build-management. But always if we try to run tests with Maven we ge...
Syringomyelia asked 14/5, 2018 at 16:11

2

Solved

I'm trying out Java 9 Jigsaw module system (no module experience yet) and would like to use it for capsuling the classes within my project, but it's confusing. According to this article it should ...
Deucalion asked 5/2, 2018 at 16:37

© 2022 - 2024 — McMap. All rights reserved.