java-platform-module-system Questions
2
I have a Gradle project using the Kotlin Gradle plugin. I want to build a Java 9 module, so my directory structure looks like this:
src/main/java/
- module-info.java
src/main/kotlin/
- Foo.kt
-...
Sarracenia asked 24/12, 2017 at 6:49
2
Solved
I wanted to use some codes that using sun.awt.image.PNGImageDecoder in my project. The problem is source code is based on Java 8 and my project using JDK 9+ (11). So I got this error:
Package 'sun...
Martell asked 16/12, 2018 at 11:43
1
I tried to follow this question but it does`t work for me.
I want to compile 1 module (which does not requires any other module or jar) together with other classes which use this module and will be...
Technical asked 28/3, 2018 at 15:2
1
Solved
I have some model classes that are instantiated many times and have many fields. While I could initialize all fields as Simple*Propertys, this significantly slows performance due to the allocations...
Chrysoprase asked 3/12, 2018 at 3:32
2
Solved
In module-info.java i get the error
Package 'com.example' reads package 'javafx.beans' from both 'javafx.base' and 'javafx.base'.
Not only does the migration (Java 8 to Java 11) frustrate me ...
Sletten asked 29/11, 2018 at 21:48
0
I'm trying to access a file in my eclipse project from a class within the project. I need to declare the project as a jigsaw module to reach it from other projects, however by doing this, I n...
Tether asked 13/11, 2018 at 16:52
3
Solved
With Java 9 on the close horizon I thought it would be a good learning exercise to port some of my projects over to Java 9. In one of my projects I have dependencies for rxjava and rxjavafx
depend...
Coomer asked 21/2, 2017 at 3:26
1
Solved
I upgraded the SDK that my project uses to Java 10. The following import statement caused an error:
import javax.annotation.PostConstruct;
Package 'javax.annotation' is declared in module 'java...
Schleswigholstein asked 29/8, 2018 at 19:21
2
Solved
I try to migrate a Java8 project to Java9. The auto generated module-info.java contains an entry
requires log4j;
and an error is shown:
log4j cannot be resolved to a module
=> How do I corre...
Planoconvex asked 10/11, 2017 at 13:4
4
I'm debugging why in the presence of module-info.java in my Spring Boot application, spring-orm throws an exception during start up time. This is the exception:
org.springframework.beans.factory.B...
Informal asked 21/8, 2018 at 8:50
4
We use maven and have artifacts that in turn depend on other internal artifacts. I am in the process of migrating to java-9, and intend to migrate everything to Java 9 first without modularizing th...
Pharmacist asked 6/9, 2017 at 21:39
2
Solved
I am new to Java 9 and was going though the modular video lectures by Java on YouTube.
They mentioned 3 benefits of modularization-
1. No missing dependencies
2. No cyclic dependnpcies
3. No split ...
Bertle asked 13/8, 2018 at 17:55
1
Solved
Consider the following code in a maven project:
import org.w3c.dom.css.CSSStyleDeclaration;
public class Test {
public static void main(String[] args) {
CSSStyleDeclaration styleDeclaration = n...
Horripilation asked 26/7, 2018 at 6:9
1
Solved
I am migrating my project from Java 8 to Java 9. My project is mavenised. Now for migrating to Java 9, I am planning on creating a separate module directory where all the required dependency of a m...
Grovel asked 24/7, 2018 at 7:36
3
Solved
I installed the release version of JDK 9 on Mac OS.
jshell works great, Jigsaw module support works, but there is no jlink:
➜ java --version
java 9
Java(TM) SE Runtime Environment (build 9+181)
J...
Protochordate asked 25/9, 2017 at 18:46
1
Solved
When I compile my Spring Boot application in Java 9, it fails after a couple of messages such as this one:
package com.fasterxml.jackson.annotation is not visible
(package com.fasterxml.jackson.a...
Chuckle asked 18/6, 2018 at 14:42
1
Solved
What's the naming convention for java 9 modules? Let's say my package name is me.jasonyeo.awesome.project, and whenever I create a module-info.java file in IDEA, it would suggest me to name i...
Carew asked 7/6, 2018 at 8:12
1
I'm migrating an application to Java 10. Our application normally runs with the JRE, but we allow users to compile bits of their own custom code by bundling tools.jar and using reflection to load a...
Arianaariane asked 31/5, 2018 at 15:51
1
Solved
I'm upgrading a Java desktop application to JDK10 and need to leverage modules to use the javapackager to build a native package.
Everything was working great until I added an obfuscation step usin...
Kinky asked 6/5, 2018 at 18:27
1
I'm using Java 9.0.4 in Eclipse Oxygen.3a
JUnit 5 is on the modul-path and required in the module-info.java.
When I try to run my code i always get the following message:
Error occurred durin...
Ploughboy asked 18/5, 2018 at 9:33
1
Solved
I've spent some time to migrate my project written in Groovy to Java 10. Now it's possible to compile and run it. But still it doesn't use any benefits of Java 9 modularity.
Googling about Groovy a...
Farwell asked 3/5, 2018 at 20:15
3
Solved
In my multi-module project, I created module-info.java only for few modules. And during compilation with maven-compiler-plugin:3.7.0 I'm getting next warning:
[WARNING]
* Required filename-base...
Carmancarmarthen asked 30/9, 2017 at 8:34
1
Solved
I'm investigating using Jigsaw to reduce the footprint of a microservice. One of the last dependencies I had to find was java.beans.Introspector.
Imagine my surprise when I discovered I needed to ...
Adkisson asked 11/4, 2018 at 20:49
1
If I have all types of modules in my project (application, automatic and unnamed) how exactly Maven will work with them?
Can I enforce Maven to treat some jars as automatic modules whereas other mo...
Mudcat asked 11/4, 2018 at 9:46
1
I am trying to acquaint myself with Java 9 modules and how to define them in IntelliJ. Among other things, I want to solve a split package problem using the --patch-module compiler/JVM flag and I d...
Merited asked 7/8, 2017 at 11:21
© 2022 - 2024 — McMap. All rights reserved.