module-info 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
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
11
Solved
I have a trivial Maven project:
src
└── main
└── java
└── module-info.java
pom.xml
pom.xml:
<groupId>org.example</groupId>
<artifactId>example</artifactId>
<version...
Jamesjamesian asked 21/3, 2018 at 5:35
7
Solved
What's the difference between requires and requires transitive module statements in module declaration?
For example:
module foo {
requires java.base;
requires transitive java.compiler;
}
Armchair asked 30/9, 2017 at 11:53
2
Solved
I am upgrading my project from java 8 to java 11. I'm able to build and deploy it with java11, spring 5 dependencies but when I am adding module-info.java into my project I am getting below error w...
Zobe asked 3/2, 2020 at 15:10
1
Solved
I've been stuck on this error now for a few days. I've googled the heck out it and tried at least a dozen different proposed solutions in various forms...
My project runs fine, UNTIL I attempt to u...
Solleret asked 30/10, 2021 at 11:9
2
Solved
I am experimenting with SPI on JDK 9. Entire example works on JDK 9 without "module-info.java". After adding "module-info.java" ServiceLocator is not finding implementing class....
Underworld asked 8/10, 2017 at 14:26
3
Solved
What is the difference between a module with the open keyword before it and without it? For instance:
open module foo {
}
module foo {
}
Pyaemia asked 29/9, 2017 at 5:34
3
Solved
I'm testing Java 9 with a project which requires JPA (javax.persistence.* classes). When I add the module-info.java and declare my module, all classes under javax.persistece package become unavaila...
Hulking asked 28/9, 2017 at 14:41
2
Solved
My project depends on Netty Epoll transport. Here is dependency:
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
<...
Kassia asked 30/9, 2017 at 9:17
1
Initially I had one unique module-info in the next folder:
src/main/java/module-info.java.
I was able to run the tests successfully.
Now I need to overwrite the module-info because I need to add so...
Oxyacid asked 15/3, 2021 at 16:13
1
How can we provide an annotation processor with a Java 11 module?
To register the annotation provider we need the following module-info entry:
import javax.annotation.processing.Processor;
import...
Indiscretion asked 9/1, 2020 at 22:31
1
Solved
I have an explicit modular project which is dependent on an automatic module; e.g. on java.activation. Is it still possible to use jlink?
See this module-info.java:
module hello {
requires java.ac...
Longplaying asked 26/9, 2018 at 12:46
2
All the required modules I've declared in module-info.java are not being found when I run gradle:
/Users/Joseph/eclipse-workspace/CheckMyDigitalFootprint/src/main/java/module-info.java:10: error: ...
Electromyography asked 10/12, 2018 at 4:40
1
Solved
project name-JavaFX
module-info.java
module JavaFX {
requires javafx.fxml;
requires javafx.controls;
requires java.desktop;
opens sample;
}
Controller.java
package sample;
import javafx.fxml....
Swanee asked 10/6, 2020 at 15:54
2
Everytime I try to create a new java project Eclipse keeps asking if I want to add a module-info java file to the source folder. It's getting pretty annoying as there's no immediately obvious optio...
Rizo asked 4/9, 2018 at 2:45
3
I faced problem during migration our project to Java 9.
After I've updated Java 9, I attempt to run project, I faced with compiler errors :-
Error:(6, 1) java: package javax.annotation is not vis...
Furfuran asked 23/11, 2017 at 16:59
1
I am trying to use an Undecorated stage in a JavaFX project, stage.initStyle(StageStyle.UNDECORATED);. It is a modular Gradle project. It is also a multi-project build, though because I am working ...
Castaneda asked 29/11, 2019 at 2:55
0
I'm trying to deploy a very basic JavaFX application. I'm just creating a new JavaFX project and trying to deploy it to .exe but it gives me a module not found error.
This is the console log:
Bui...
Meatball asked 26/9, 2019 at 13:48
2
Solved
I have a module-info.java file that looks like -
module foo.microservice {
requires spring.core;
requires spring.beans;
requires spring.context;
requires java.sql; // required for Spring Annot...
Sitka asked 18/12, 2017 at 10:44
2
Solved
I like services. I also like the module system. Unfortunately for me, before I used Java 9 I got in the habit of getting service providers from jars loaded at runtime via URLClassLoader, something ...
Tbar asked 17/1, 2019 at 2:42
1
I know that module-info.java is recognized by jdk9+
I wonder however whether module-info.java can still be used in combination with target level 8.
E.g. I want my library to be used in java9+ pr...
Subtrahend asked 9/1, 2019 at 17:37
2
Solved
The Java 9 modules feature adds (higher-level) module-info files in addition to the package-info files that existed previously. Can module-info.java (source-code) files include marked-up comments t...
Lysander asked 28/12, 2018 at 11:2
1
Solved
According to https://www.oracle.com/corporate/features/understanding-java-9-modules.html, the Java Module system introduces the following directives:
exports, exports ... to
uses
provides ... wit...
Disorder asked 26/12, 2018 at 4:20
2
Solved
I wanted to use some codes that using sun.awt.image.PNGImageDecoder in my project. The problem is source code is based on Java 8 and my project using JDK 9+ (11). So I got this error:
Package 'sun...
Martell asked 16/12, 2018 at 11:43
1 Next >
© 2022 - 2025 — McMap. All rights reserved.