java-platform-module-system Questions
1
Solved
I'm following the tutorial here and using openjdk 11.0.2 and javafx-sdk-11.0.2.
I've imported the maven project in Eclipse. The project actually compiles and packages just fine. It also creat...
Demars asked 16/3, 2019 at 11:55
1
Solved
We have a JavaFX based application which is not modularized (there are reasons, a legacy library is involved) but we build an custom runtime using jdeps and jlink.
We've recently rewritten the app ...
Illiberal asked 12/11, 2021 at 13:46
1
Solved
We are in the process of investigating the migration of our application from JDK8 to JDK17. Some of our modules use wsdl based web services, some others make use of .xsd schemas etc. Regardless, we...
Rhines asked 5/11, 2021 at 18:1
1
Solved
I get this error when I run this test using JDK 17:
java.lang.reflect.InaccessibleObjectException: Unable to make field final transient java.lang.Class java.util.EnumSet.elementType accessible: mod...
Scrim asked 28/10, 2021 at 11:27
0
I'm into modular Java for a few months now, with Spring and related ecosystem stuff. And one of the most frustrating experiences is debugging module issues with unclear names
Here is the last error...
Ethanol asked 30/9, 2021 at 20:4
1
Solved
While performing a proof of concept for a problem - JPMS ServiceLoader does not work for me as expected.
I reached a state to understand the difference in how the two modules were resolved when pro...
Keverne asked 7/8, 2021 at 14:16
1
Solved
JPMS ServiceLoader does not work for me as expected.
I am trying to provide a desktop program as an executable jar with a default service, that can be overloaded by the individual user. A user prov...
Toothbrush asked 7/8, 2021 at 10:57
0
While trying to port swing code to be compliant with the Java module system I got stuck trying to replace SwingUtilities3.setDelegateRepaintManager.
I have a component, which when any of its childr...
Atlantic asked 20/7, 2021 at 12:8
1
I'm trying to use the jlink tool in order to build a java executable. I'm using it in the following way:
jlink.exe --module-path <path-to-modules> --add-modules <my-module-name> --outp...
Olwen asked 30/5, 2018 at 6:42
2
Solved
I have a multi-module Gradle Java project using source/target = 1.9/1.9. There are two modules, my.base and my.dependsOnBase. The my.base module has no other dependencies:
module my.base {
export...
Rahmann asked 19/12, 2017 at 16:51
4
Solved
There are a lot of questions about illegal reflective access in Java 9.
I have found plenty of discussion about working around the error messages, but I would love to know what an illegal reflectiv...
Intoxicant asked 9/5, 2018 at 11:1
4
When trying to register an MBean in JMX Console I'm getting the following error message:
The package javax.management is accessible from more than one module: <unnamed>, java.management
I'...
Neritic asked 29/4, 2019 at 11:35
3
Solved
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
...
Siddra asked 18/7, 2017 at 12:25
1
I am trying to use JNA, because I want to work with a .dll that was written in c++ and the rest of my code is in Java. However, if I try to import the JNA classes Eclipse claims "The type com....
Quadrat asked 5/5, 2021 at 13:7
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
4
package springdemo4;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class HelloSpringApp {
public static void main(String[] args) {
ClassPathXmlApplicationCo...
Imitable asked 30/8, 2019 at 23:20
1
I need to use Reflections in a maven project with JavaFX and I want to use jlink to bundle a minimal JRE.
The problem is that I get the following error when running mvn clean compile javafx:j...
Vassar asked 16/3, 2021 at 7:18
2
I'm really hoping that the following rings a bell with someone as we're running out of ideas. Answers or suggestions on how to further diagnose would be much appreciated.
We have a Java app that ha...
Enceinte asked 14/4, 2021 at 16:40
3
Solved
So far until non-modularized java, you would simply put a file in src/main/java/resources make sure it is in classpath and then load it with
file = getClass().getClassLoader().getResourceAsStream...
Ulu asked 21/10, 2017 at 8:46
1
Solved
Problem
How do you create a java library jar that both:
is java module (has module-info)
has a depending legacy (non-module) jar. (like commons-exec)?
The dependency is an implementation detail -...
Zadoc asked 26/3, 2021 at 15:21
1
I'm using:
Wildfly 21
Java 11
I've just went through the pain of modularizing (with Java 9 modules) an Jakarta EE EAR application of mine that runs on Wildfly 21. This application has a war jar, ...
Rectal asked 12/2, 2021 at 19:52
2
I am trying to create cross platform / platform independent executables for my JAVA-9 application / project jigsaw.
I think jlink command will create only platform specific executable/runtime.
Paediatrics asked 13/5, 2016 at 12:38
2
Solved
I'm migrating a jar project from java 10 using classpath to java 11 using the java 9 jigsaw modules.
There are JUnit5 tests for the project.
The test dependencies are provided at test scope by mave...
Rutilant asked 7/1, 2019 at 5:48
1
In my project, I'm trying to include links to a modularized Java library (Caesar) in the documentation files generated by the javadoc tool. Running:
mvn clean install
builds the docs without links...
Aaron asked 15/11, 2020 at 10:43
1
Solved
I'm upgrading java version in our production code from java 8 to java 11.
I have to add the below JDK module configuration in the application java start command due to usage of third party librarie...
Reamy asked 19/11, 2020 at 21:48
© 2022 - 2024 — McMap. All rights reserved.