java-platform-module-system Questions

2

Solved

Java 9 has three ways to package compiled code in files: JAR JMOD JIMAGE JIMAGE is optimized for speed and space and used by the JVM at runtime so it makes sense why JIMAGE was introduced. JIM...
Leftist asked 24/6, 2017 at 4:56

4

Solved

What's wrong with this application. I thought the mix of classpath jars and module jars are valid. For all jars not having an explicit module-info become an automatic module? When I delete my modul...
Istria asked 4/7, 2017 at 16:37

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

1

Solved

I try to run a very simple gradle project which uses java 9 modules, but i receive the following error. /home/vadim/IdeaProjects/test_modules/src/main/java/module-info.java:2: error: module not fou...

2

Solved

We're currently migrating from Java 8 to Java 11. However, upgrading our services was less painful, than we anticipated. We basically only had to change the version number in our build.gradle file ...
Pashm asked 17/7, 2020 at 9:1

1

Solved

An example: since JavaFx was dropped from the JDK, the JavaFx SDK is now distributed as a set of modular jars. To compile a JavaFx application, of course you have to put them on the module path: j...
Crescentia asked 12/6, 2020 at 9:12

4

Solved

I expected it's possible to use i.e. Guava-19 in myModuleA and guava-20 in myModuleB, since jigsaw modules have their own classpath. Let's say myModuleA uses Iterators.emptyIterator(); - which is ...
Ethridge asked 24/7, 2017 at 14:59

3

Solved

Environment: OpenJDK 64-Bit Server VM Zulu12.2+3-CA (build 12.0.1+12, mixed mode, sharing) Scala 2.12.7 Windows 10 Professional, X86_64 IntelliJ IDEA 2019.1.3 (Ultimate Edition) I checked out t...
Lurleen asked 26/6, 2019 at 13:46

4

I am trying to run below code using jdk-9 but facing problem when compile using command Command javac -d mods .\module-info.java com\nirav\modi\Test.java Error .\module-info.java:1: error: cl...
Seaddon asked 25/1, 2017 at 10:35

5

Solved

One of Java 9's largest features will be a module system defined by Project Jigsaw. When reading slides from the Project Jigsaw: Under the Hood at JavaOne 2015, I noticed the following source code:...
Crackbrained asked 31/3, 2016 at 0:37

1

Solved

I use Java 14 with Jetty 9.4 and Weld-servlet-shaded-3.1 and I get this exception: Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.l...
Vivavivace asked 29/3, 2020 at 17:30

1

Solved

I have a JPMS framework that dynamically creates JPMS layers and add modules to them. After some tests it seems to me that --add-opens JVM parameter works only for the boot layer, I mean the layer ...
Form asked 31/3, 2020 at 16:47

2

Solved

I am getting this error message when I try to compile my new modularized Java 11 application: Error occurred during initialization of boot layer java.lang.module.FindException: Unable to derive mo...

1

Solved

Given my module-info.java: module my_module { requires lucene.analyzers.common; requires lucene.core; } I get the following error: Module 'my_module' reads package 'org.apache.lucene.analysi...
Horsepowerhour asked 22/8, 2019 at 10:48

1

I'm following the Project Jigsaw: Module System Quick-Start Guide in IntelliJ IDEA 2018.2.5. I did everything right in the IDE until The linker section. Is there any way to use jlink in IntelliJ ID...
Guardrail asked 9/11, 2018 at 17:18

2

Solved

In order to understand the categories we have: platform explicit modules application explicit modules open modules automatic modules unnamed module All classes and jars within the classpath wil...
Henn asked 18/7, 2017 at 12:32

0

Im having some issue and I had no luck figuring it out how to fix it. I have a JavaFx Project which has Hibernate and Proguard. But whenever I try to run the task 'runProguard' fails with java.lan...
Diminutive asked 8/11, 2019 at 14:8

1

Solved

I use jdk 11 and try to understand --patch-module option for java compiler. Here is the simple module I have: mdl-platform | | |___com.test.mdl.platform | | | |___ ... | | | |___Patch.java ...
Uncivilized asked 29/7, 2019 at 18:32

1

Solved

Here the following benefit of Jigsaw is described: As part of Project Jigsaw, all the Java Platform APIs have been split up into separate modules. The benefit of splitting all the Java APIs up int...
Bicyclic asked 3/7, 2019 at 16:1

2

Solved

I started to learn jigsaw java-9 feature and read some articles/video. I can't understand concept of optional dependencies(requires static) quote from article: When a module needs to be ...
Burgher asked 16/5, 2019 at 14:0

1

I am trying to recompile a JAVA8 code in JAVA11. Getting below compilation errors. error: reference to Module is ambiguous private Module module; both interface com.module.Module in com.modu...

2

Solved

I have a multi-module project using Maven and Java. I am now trying to migrate to Java 9/10/11 and implement modules (as in JSR 376: Java Platform Module System, JPMS). As the project was already c...
Snippet asked 26/11, 2018 at 9:3

1

Solved

I have a very basic JavaFX application that works flawlessly if the Application class is not the Main class: import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.sta...
Aranyaka asked 18/2, 2019 at 22:15

3

Is there a way to make a Java class public but only public with a JAR file? AKA, it's not package private, instead it's package public, but it's not JAR public? Say I have a structure like this: ...
Pimp asked 11/2, 2019 at 9:40

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...

© 2022 - 2024 — McMap. All rights reserved.