Skip to main content
Filter by
Sorted by
Tagged with
5 votes
1 answer
85 views

My directory looks like this. I am just outside of the blah folder. $ tree.com //F Folder PATH listing for volume Acer Volume serial number is 127C-AD6A C:. └───blah └───src └───main ...
davidalayachew's user avatar
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
4 votes
3 answers
361 views

The goal: to combine multiple JARs and the modules in them into a single JAR allow consumers to include a single package dependency in their maven/gradle/... files make all of the modules available ...
foo's user avatar
  • 2,254
0 votes
0 answers
46 views

I have been facing below issue during the ANT build of my older project with JAVA 17. The build.xml is created using .vm(Velocity Template file). Error: [exec] Error: java.lang.NoClassDefFoundError: ...
Shubham Biradar's user avatar
1 vote
2 answers
113 views

I am familiar with the Java Platform Module System. The javadoc for Module#addOpens sketches out a use case that I cannot translate into the real world: This method can be used for cases where a ...
Laird Nelson's user avatar
  • 16.5k
2 votes
2 answers
128 views

I am trying to read a docx file and replace the author names with a constant string. This is the code in my main function. import jakarta.xml.bind.JAXBException; import org.docx4j.openpackaging....
user304611'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
-3 votes
1 answer
919 views

I'm trying to set environment variables at run time using reflection in a Java application that's being migrated from Java 8 to Java 17. I'm changing the environment variable for my unit testing. ...
DanDaDan's user avatar
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
4 votes
1 answer
280 views

I'm trying to figure out why JUnit behaves differently from a 'regular' Java program with respect to the jdk.unsupported module. And yes, I know I shouldn't be using this. I'm just trying (and failing)...
jqno's user avatar
  • 15.6k
1 vote
0 answers
55 views

I added a module.info to my src/main/java and then also to my src/test/java, as per the example here. Compiling my main code is no problem. I see the compiler:compile goal adds only my direct (non-...
Yonas's user avatar
  • 489
0 votes
0 answers
99 views

We have a plugin named mockito and it has cglib-nodep-2.2.2.jar, hamcrest-core-1.3.jar, mockito-core-1.10.19.jar, objenesis-2.4.jar, jmockit-1.49.jar in it's bundle-classpath and have exported all the ...
Paul-E's user avatar
  • 95
2 votes
1 answer
413 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
1 answer
108 views

What is the current state of JPMS support in Android? If I define a module, does Android honor the public/internal separation or does Android just ignore module-info?
Marius K.'s user avatar
  • 367
0 votes
0 answers
46 views

I am migrating my Web project into java modules (JigSaw) with Java 17 and eclipse. One of my projects (ProjectA) defines Lombok as a required static resource ("requires static lombok;") in ...
Edmund's user avatar
  • 71
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
171 views

anyone can explain to me why my spring jpms module exited ? my code is too simple : package ir.moke.module.spring; import org.springframework.boot.SpringApplication; import org.springframework.boot....
mah454's user avatar
  • 1,948
1 vote
0 answers
50 views

I working on Java 21 JPMS module . is there any way to dynamically register/unregister to micronaut a class annotated by @Controller ? Actually i want to implement modular api . Note: Each api has own ...
mah454's user avatar
  • 1,948
0 votes
2 answers
136 views

I try to build jpms embedded tomcat server . <dependencies> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</...
mah454's user avatar
  • 1,948
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
0 votes
1 answer
475 views

Settings I'm using JDK 22: openjdk version "22" 2024-03-19 OpenJDK Runtime Environment (build 22+36-2370) OpenJDK 64-Bit Server VM (build 22+36-2370, mixed mode, sharing) I'm also using ...
Yann-Gaël Guéhéneuc'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
0 answers
71 views

I have a Spring Boot project with 2 jigsaw modules (java 21). Inner module with only one public package with interfaces and DTOs; also it provides an implementation for UseCase service: module com....
zeugor's user avatar
  • 956
1 vote
0 answers
134 views

I don't fully understand the combination of JPMS and maven. In multiple places, the two claim to be independent and orthogonal to each other, yet both offer concepts for dependency and encapsulation. ...
bmurauer's user avatar
  • 1,329
0 votes
0 answers
51 views

I have a Java maven project that has dependencies to other libraries. One of these dependecies has a Main class that can be used as < mainClass > in my maven-jar-plugin so I don't have have to ...
R...'s user avatar
  • 2,798
2 votes
0 answers
134 views

Having a maven project "Test". This is the pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
Grim's user avatar
  • 2,153
3 votes
1 answer
276 views

When running mvn test -e -X why is build failing with java.lang.ClassNotFoundException: java.net.http.HttpResponse? I am using java 17 My stack trace is: Running job testJava17ClientSamples ... ...
spacether's user avatar
  • 2,851
4 votes
0 answers
98 views

The JPMS requires instruction can have two qualifiers static and transitive. For a module foo: requires static bar;, makes resolution of the bar module optional at runtime, requires transitive bar;, ...
Piotr P. Karwasz's user avatar
0 votes
2 answers
524 views

I have a custom class, whose package is given as java.util. The code was compiling fine before java version 9, but when I have changed java version to 11, I am facing package exists in another module: ...
V R's user avatar
  • 1
1 vote
1 answer
2k views

In my Java 17 maven project I am using slf4j based on log4j2. It runs fine, when I start it from within Eclipse. Maven places the main class in MANIFEST of the modules jar file and all dependent jar ...
ngong's user avatar
  • 894
1 vote
0 answers
154 views

The diagnostics log basicaly says: ResolutionException: Module org.seleniumhq.selenium.remote_driver contains package com.tngtech.jgiven.impl, module com.tngtech.jgiven.core exports package com....
Adrian Herscu's user avatar
0 votes
0 answers
203 views

I am using JDK 19 in a modular maven project. My project compiles in the shell, but I get errors in Eclipse. The package org.slf4j is accessible from more than one module: <unnamed>, org.slf4j ...
Heiko's user avatar
  • 31
0 votes
0 answers
81 views

This question has been asked here several times. But I did not find a usable answer so far (for years now). As I am doing small Java-17 programs using big jar files, I am wondering whether JPMS is the ...
ngong's user avatar
  • 894
0 votes
1 answer
399 views

There is a maven artifact called xxx: Having this vanilla pom: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
Grim's user avatar
  • 2,153
3 votes
1 answer
4k views

First of all I researched a lot about this issue already and it's is not a duplicate of the numerous and typical "The package * is accessible from more than one module: <unnamed>, java.xml&...
Sebsen36's user avatar
  • 494
0 votes
0 answers
75 views

I am creating my first project using JPMS . Simply I have a Maven project and some simple classes that need JAXB classes.Then created module-info.java module mymodule{ requires jakarta.xml.bind; ...
KronosOne's user avatar
  • 337
0 votes
1 answer
544 views

I tried to locate an example of pom.xml and module-info.java to use fop in an embedded way with JPMS, namely Java-17, but could not find one. E.g. my code: FopFactoryBuilder builder = new ...
ngong's user avatar
  • 894
2 votes
1 answer
511 views

I have the following project structure. ProjectName | |---src | |---main | |---java | | | |---ModuleName | | | |---module-info....
davidalayachew's user avatar
0 votes
1 answer
221 views

I have four Java packages in Eclipse: augustus, caligula, julius, and nero. I want to place augustus and caligula in a module. I want to place julius and nero in another module. How do I go about ...
James Walton's user avatar
4 votes
1 answer
13k views

In the context of JEP 403's robust encapsulation in Java 17, I have a class (.jar) that is dynamically loaded during JVM execution. This class utilizes Reflection to invoke private methods belonging ...
Peyang's user avatar
  • 127
1 vote
0 answers
77 views

In the Java Language Specification, paragraph 7.7, it states: A 'dependency' is the observable module enumerated by resolution (as described in the java.lang.module package specification) for a given ...
Hicham Moustaid's user avatar
1 vote
1 answer
220 views

I'm trying to build a Java module with Maven but I keep getting the same error (module not found) with every dependency when I run mvn compile. Neither Intellij IDEA nor VSCode give me any error ...
AndreaG's user avatar
  • 21
0 votes
1 answer
232 views

I currently working on a JPMS project and would like to be able to cache the Providers retrieved on ServiceLoader.load() to be able to use their get() method later for a new set of service instances - ...
G. B. Wanscher's user avatar
2 votes
1 answer
754 views

I have a Java 11 Gradle project for work. I am using IntelliJ Idea. I have some test errors, so I'm trying to debug. The error message I'm asking about appears to be unrelated to the test errors, but ...
apex2022's user avatar
  • 877
2 votes
1 answer
818 views

When TestNG invokes Class.getResourceAsStream() on an external module, it is returning null. Per Resources visibility with java9 modules when a user wants to access /resources/someResource.xml in a ...
Gili's user avatar
  • 90.9k
0 votes
0 answers
81 views

Does anybody else experience strange Source compilation had errors info messages when running an application with JPMS modules on openliberty. These are info messages I also see in my project: ...\src\...
r-uu's user avatar
  • 647
2 votes
1 answer
88 views

Suppose java is invoked with --patch-module. From within the running program, is there any way to discover that the patched module contains classes and packages in more than one location? I failed to ...
Laird Nelson's user avatar
  • 16.5k
4 votes
0 answers
948 views

In our purely Kotlin project we would like to use flexible Java 9 module system. Otherwise we have to use internal visibility modifier too often to hide internal Kotlin module functionality from other ...
Andriy Kryvtsun's user avatar
4 votes
1 answer
729 views

I'm trying to create a simple Spring Boot application and run it with Java Modules on the latest Java version. I have created a Main class: package org.example; import org.springframework.boot....
Alexey Gavrilov's user avatar

1
2 3 4 5
11