Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
70 views

I am working on creating module-info.java file for hbase-client module in apache hbase project. Now, hbase-client has direct incoming dependency on hbase-common module. In apache hbase project, most ...
Dev Hingu's user avatar
3 votes
2 answers
242 views

Question looks easy, and probably has an easy solution, but I didn't find one. Given module A that needs module B, which in turn needs module C. Module A should not need to know about module C. I well ...
Gyro Gearloose's user avatar
2 votes
1 answer
110 views

I'm using the Java Module System since some years now and until Mockito 5.15.2 this was no Problem. But with Version 5.16.0+ I now got the following error: Mockito cannot mock this class: class javax....
PowerStat's user avatar
  • 3,863
3 votes
1 answer
98 views

If you look at a module's documentation from the standard library, such as java.base, you'll see it has a section that lists which services it uses and which services it provides. Based on the ...
Slaw's user avatar
  • 49.9k
0 votes
1 answer
46 views

I have a project which has 2 modules A and B. Module A depends on module B. (Maven compile and test dependency). Module A and module B have the same package structure and names i.e module A/src/main/...
Harsha Limaye's user avatar
0 votes
1 answer
37 views

Surefire has a parameter called additionalClasspathElements for adding elements to the test classpath. Is there a way to add elements to the test modulepath instead?
Gili's user avatar
  • 90.9k
0 votes
3 answers
289 views

You can checkout my whole project on github. I currently don't use any dependency managers in my projects and I would like to keep it that way. I am using a library that I made in java and I am using ...
Dimnik's user avatar
  • 79
0 votes
1 answer
161 views

I am working on java 17 migration from java 8. While upgrading the code I'm getting stuck on below error. Unable to proceed forward due to this issue. Error: [exec] ./src/javax/transaction/xa/Xid....
Shubham Biradar's user avatar
3 votes
1 answer
169 views

As the title says. To load a xml file (and any other file for that matter) via spring boots value annotation, the file has to sit in resources/static/path-to-file when using a module-info file. not ...
LookingForFish's user avatar
2 votes
1 answer
98 views

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. ...
SilverCube's user avatar
  • 1,138
2 votes
0 answers
84 views

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(...
czerny's user avatar
  • 16.9k
0 votes
0 answers
45 views

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 ...
basin's user avatar
  • 4,220
0 votes
0 answers
113 views

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 ...
Sanjay's user avatar
  • 313
0 votes
0 answers
121 views

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 ...
ngong's user avatar
  • 894
0 votes
1 answer
224 views

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....
snorm's user avatar
  • 1
2 votes
1 answer
168 views

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 ...
Victor Stafusa's user avatar
0 votes
1 answer
404 views

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....
Jardo's user avatar
  • 2,123
2 votes
1 answer
549 views

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 │ ├──...
happy's user avatar
  • 515
0 votes
2 answers
256 views

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 ...
Horcrux7's user avatar
  • 24.6k
2 votes
1 answer
459 views

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-...
PowerStat's user avatar
  • 3,863
0 votes
1 answer
183 views

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() { ...
Photon's user avatar
  • 29
0 votes
0 answers
346 views

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&...
Photon's user avatar
  • 29
-1 votes
1 answer
157 views

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("&...
Reto Höhener's user avatar
2 votes
1 answer
195 views

In my Java 21 project, I'm trying to use the package io.jsonwebtoken.Jwts in the library jjwt-api. This dependency has no module-info.java and no Automatic-Module-Name-entry inside of the MANIFEST.MF. ...
xtay2's user avatar
  • 981
2 votes
1 answer
414 views

I've a clojure project with deps.edn which uses the library clj-async-profiler My main function in the project contains the below code - (ns com.myns.cli (:gen-class) (:require [clj-async-...
user51's user avatar
  • 10.6k
0 votes
0 answers
318 views

I am programming a database application in Java and would like to use java modules. The following code crashes with an error: package dm; import java.sql.Connection; import java.sql.DriverManager; ...
Marcus Bleil's user avatar
2 votes
0 answers
64 views

In an implementation of the Java Platform Module System, as implemented by most OpenJDK implementations, you can patch a module with classes from other artifacts. (Maven does this during Surefire runs,...
Laird Nelson's user avatar
  • 16.5k
1 vote
0 answers
88 views

I am trying to load modules dynamically from a folder. Suppose I have a "Module A" that has its own set of dependencies and "Module B" that has its own set of dependencies + it ...
Dan's user avatar
  • 23
4 votes
1 answer
535 views

I'm working on a JavaFX application which is currently non-modular. If I would make my application modular then I would need to make many changes in other projects that are not fully under my command. ...
Billie's user avatar
  • 357
2 votes
2 answers
241 views

I created two Maven projects 'javafx' and 'commonfx' to reproduce an error. module commonfx { exports commonfx.calculator; } module javafx { requires javafx.controls; requires javafx....
Billie's user avatar
  • 357
1 vote
1 answer
884 views

I have a jpackage build script that takes one of my projects (all have the exact same structure) and creates an executable. This script works and produces an installer, which I can run to create my ...
davidalayachew's user avatar
4 votes
1 answer
2k views

I tried execute spark program in my springboot framework(mvn) project in IDEA, but I found the question below: INFO org.apache.spark.storage.BlockManagerMasterEndpoint -- Using org.apache.spark....
DianleJy's user avatar
2 votes
1 answer
136 views

I have a simple hello world that I'm trying to build into a modular jar to test running jlink. I can neither run the jar file nor can I create an image for it with jlink. I an on Windows, and using ...
BillRobertson42's user avatar
0 votes
1 answer
282 views

From what I understand and read already the problem is that the module is imported twice somewhere, but I don't understand where. This is my module-info.java file: module main { requires org....
robi503's user avatar
  • 13
2 votes
2 answers
912 views

How to in a JavaFX 21 modular application using JLink (in order to package as a native executable), put the automatic modules H2 and Hibernate, in the class path, as explained in this video, do you ...
2023's user avatar
  • 103
-1 votes
1 answer
673 views

I need some help. I writing a JavaFX app which uses java kubernetes client https://github.com/kubernetes-client/java which in turn uses bouncyCastle. When I run the app from Intellij everything works. ...
Vitaly Chura's user avatar
0 votes
0 answers
29 views

My application is currently using Java 8 and we are using docker image which runs on jre 8. Due to some compliance reason we need to immediately upgrade docker image which runs on jre 11. But our code ...
Abhishek's user avatar
0 votes
1 answer
138 views

I am working with javax.tools.JavaCompiler, using it to programmatically compile Java code from my running Java application. Everything is working great, except that I don't how to execute the ...
davidalayachew's user avatar
0 votes
1 answer
2k views

As most of you know, Java Modules (Platform Module System) have been introduced in Java 9. Although, I personally never had a chance to explicitly use modules since then. And at the same time, every ...
user23451948's user avatar
0 votes
1 answer
103 views

My project uses Mapsforge library for displaying maps, and JavaFX for GUI. There is a way to compile JavaFX with javafx-maven-plugin and stay in the unmodular paradigm, but it seems against the best ...
Quasy's user avatar
  • 29
2 votes
0 answers
73 views

I have a new Java application that is module based. I need to pull in two dependencies (one module based - sqlite - and one that is not - commonutilities) but both contain transient dependencies to ...
Todd's user avatar
  • 3,052
-1 votes
1 answer
91 views

I have a desktop JavaFX application using Java 9 modules system, Gradle and IntelliJ. The application builds and runs perfectly with Gradle run task. I am using it without any issue. Now I am ...
CT95's user avatar
  • 209
1 vote
1 answer
1k views

I got the following error when I add the dependency jakarta.transaction to the module-info.java file, as suggested by IntelliJ: module not found: jakarta.cdi The module-info.java file dependency is ...
MiguelSlv's user avatar
  • 15.4k
0 votes
1 answer
771 views

I am trying to create a very simple java modules project in IntelliJ with multiple modules. Accordingly documentation in https://openjdk.org/projects/jigsaw/quick-start#multimodulecompile inside src ...
mpssantos's user avatar
  • 1,001
1 vote
1 answer
138 views

I have a JPMS application with layer tree. On Layer C I need to create Spring context while Spring framework is located on Layer B: boot layer |- Layer B with Spring framework. |- Layer C ...
user avatar
0 votes
2 answers
468 views

I got this error message when compiling code generated from the OpenAPI generator: package com.google.gson.internal.bind.util is declared in module com.google.gson, which does not export it In my ...
David Miller's user avatar
3 votes
1 answer
1k views

I go the error message: module reads package javax.annotation from both jsr305 and java.annotation In my build.gradle I used these dependencies:` implementation "javax.annotation:jsr305:1.0"...
David Miller's user avatar
0 votes
0 answers
182 views

info look like : module ir.mehritco.megnatis.faststonecapture { requires javafx.controls; requires javafx.fxml; requires org.controlsfx.controls; requires org.kordamp.bootstrapfx.core;...
FarHooD's user avatar
  • 77
57 votes
3 answers
30k views

Within my Android application project I am using the following Gradle (Groovy) configuration for a library module: // build.gradle apply plugin: "java-library" apply plugin: "kotlin&...
JJD's user avatar
  • 52.7k
2 votes
1 answer
182 views

I use Java 17 and I am trying to load all Java SE modules (not JDK). The code I try: AtomicInteger y = new AtomicInteger(); ModuleLayer.boot().modules().stream() .map(Module::getName) ....
LoukasPap's user avatar
  • 1,348

1
2 3 4 5
16