772 questions
1
vote
0
answers
28
views
What arrows to use in component diagrams to show relations between JPMS layers?
JPMS supports multiple layers. For example boot layer and its two child layers.
And I need to show these layers on UML diagram. For this I selected component diagram where every layer is a component. ...
2
votes
0
answers
41
views
Running a modular Java application built by Gradle from IntelliJ IDEA
How to run a Java class with a main method from Idea in project managed by Gradle in a modular way?
For class like
package org.example.moduledemo;
public class Main {
public static void main(...
0
votes
0
answers
32
views
javac --patch-module doesn't work as expected at compile time
I want to compile my program with the use of the internal API of a modular java library which in addition is package-private. In the future I also want to fine-tune the package access at runtime to ...
0
votes
0
answers
68
views
java 9 modules causing errors
Recently we have started migrating to java 17 from 8. We found some jaxb exceptions (shown below) which got resolved after adding --add-opens=java.base/java.lang=ALL-UNNAMED. I am not sure if this is ...
0
votes
0
answers
48
views
Transform simple FO file to PDF using fop 2.10 and JPMS
I did an example that you may clone by
git clone https://github.com/rolfschumacher/chFop.git
Importing it to Eclipse as an existing Maven project and let it run leads to
Unable to derive module ...
0
votes
1
answer
64
views
Unable to use module com.azure.identity in modular java project
I am trying to use Microsoft's azure-identity module) in a Gradle app.
However .\gradlew run fails with this stack trace:
> Task :run
java.lang.module.FindException: Module msal4j.persistence....
1
vote
0
answers
45
views
Can't run Hibernate in a module environment
The problem
I'm having trouble trying to make Hibernate run in a project that have modules. I am trying to modernize an old tool that uses and old version of Hibernate with javax-based JPA and I am ...
0
votes
1
answer
76
views
Java: Need to read jackson.databind module, but it does not exist
I have a class MyClass inside java module com.example.mymodule, which needs to use com.fasterxml.jackson.databind.ObjectMapper.
When trying to run the app, I get the following error:
java.lang....
2
votes
1
answer
151
views
How to compile Java module by using --module-source-path?
I'm trying to compile a Java module that is located in a separate directory from my project's source root. Here's my project structure:
Foundation-Test-1:
│ .gitignore
│ Foundation-Test-1.iml
│
├──...
0
votes
0
answers
45
views
Modules spring.jcl and org.apache.commons.logging export package org.apache.commons.logging to module spring.data.jdbc'
In one of my java spring projects with the following pom (extract):
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</...
0
votes
2
answers
106
views
How to run a JavaFX app in Eclipse with Gradle dependencies?
If I try to run a JavaFX app with a classic classpath inside Eclipse then I get follow warning:
WARNUNG: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @7b58231a'
That I ...
2
votes
1
answer
103
views
Whats the reason for: module not found: org.jspecify
After doing some dependency updates on my project (Java 17 with modules) I got the following error message during compilation:
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ energy-...
0
votes
1
answer
161
views
A method to open jdk.compile from the lombok source
I referenced lombok.'s method of opening jdk.compile in jdk21,which opens jdk.complie at the initialization stage of the annotation processor
private static void addOpensForLombok() {
...
0
votes
0
answers
166
views
cannot access class com.sun.tools.javac.api.JavacTrees (in module jdk.compiler)
I have customized an annotation handler using java21. The pom file of the project where the annotation processor is located is shown below:
<project xmlns="http://maven.apache.org/POM/4.0.0&...
-1
votes
1
answer
102
views
Why am I getting java.lang.NoClassDefFoundError: java/sql/Driver when using a custom class loader?
This works with Java 8:
public class Test {
public static void main(String[] args) throws Exception {
URLClassLoader loader = new URLClassLoader(new URL[0], null);
System.out.println("&...