java-module Questions

5

Solved

Trying to update an application to Java 11 and after sorting through hell with modules I thought I had got rid of all the red errors and now I'm getting this one I've never seen before: Looking ...
Tifanytiff asked 23/9, 2018 at 20:3

5

I followed the steps to create the HelloWorld example but it doesn't run. It gives the following error: Error occurred during initialization of boot layer java.lang.module.FindException: Error ...
Gabion asked 26/12, 2018 at 13:30

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

15

Executing a simple "Hello World" program using Java 9 results in the following error message: Error occurred during initialization of boot layer java.lang.module.FindException: Module com.pante...
Saree asked 27/3, 2018 at 19:19

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...

3

Solved

Project structure I have a project written in Java 8 and I want to update it to Java 9. So I separated the classes into 2 separate modules. Modules: org.ggp.base with module-info.java in the dir...
Goines asked 25/3, 2018 at 13:46

3

I have a Maven project with Java 9 and am using modules. Logback seems to support this since version 1.3.0-alpha1 but unfortunately I didn't got it to work. I get the following message from SLF4J:...
Horehound asked 20/2, 2019 at 2:24

8

Solved

I'm trying to create a bean from sources that were generated by wsdl2java. Every time I try to run my Spring Boot app, I get the following error: Caused by: java.lang.ClassCastException: class ...
Sixfold asked 5/2, 2019 at 14:43

1

I have a modular Java / JavaFX, both Version 19 project in Eclipse. I use Maven to build the project. This project uses JAXB. The project runs fine within Eclipse if I use "clean javafx:run&qu...
Phallus asked 20/9, 2023 at 14:31

7

Solved

Let's say I have a Java project using Maven 3 and junit. There are src/main/java and src/test/java directories which contain main sources and test sources, respectively (everything is standard). N...
Sitter asked 6/10, 2017 at 20:5

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

8

Solved

My JDK 9+181 Spring Boot 2.0.0.BUILD-SNAPSHOT CLI application displays this warning on startup: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by o...
Singhal asked 10/10, 2017 at 16:21

4

Solved

So I'm adding my requires for module-info.java and finally got my program to load but as soon as tab pane wants to load from jfoenix library this error is thrown. Caused by: java.lang.IllegalAcces...
Murchison asked 29/10, 2018 at 0:52

3

Solved

Suppose I have some library lib.jar for which I do not have the source code (or it is written in some non-Java language which is unaware of modules yet). lib.jar does not have module-info.class and...
Jacquez asked 10/11, 2017 at 11:54

4

Solved

Had this kind of problem with main java module. rg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ldapContextSource' defined in class path resource [org/sprin...
Reparation asked 14/12, 2019 at 23:13

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)?

1

I'm experimenting with the Java module system. I'm trying to use the ServiceLoader for generic interfaces. It works but I've got warnings in the module-info. Here is my minimal code module testPro...
Blasphemous asked 17/6, 2019 at 19:24

1

My unit tests fail when I migrate from java8 to java 17. Here is an example of exceptions I get: Unable to make java.io.OptionalDataException(boolean) accessible: module java.base does not "o...
Brookins asked 20/4, 2022 at 15:26

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

Local Java Version is : java version "11.0.7" 2020-04-14 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.7+8-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.7+8-LTS, mixed mo...
Leesen asked 23/6, 2020 at 9:22

2

Solved

I'm working on a Java library targeting JDK 8, and I'm building it in Gradle 5 using OpenJDK 11. In order to target JDK 8, I'm javac's --release option. However, I'd also like my library to be JPM...
Hide asked 11/3, 2019 at 11:21

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...

0

I'm basically working with a tomcat webapp that has a complex structure, with many jars and classes at several locations and I want to generate a JRE with jlink and its --add-modules option in orde...
Sweetening asked 26/2, 2022 at 11:47

3

Solved

I'm having some issues on building a Kotlin project that uses Java 9 features. I know kotlin just allow Java 8 bytecode generation, but acording to kotlinlang.org it should support this functionali...
Ronnyronsard asked 24/2, 2019 at 7:43

© 2022 - 2025 — McMap. All rights reserved.