Skip to content
Advertisement

Tag: java-platform-module-system

Unable to make field final transient java.lang.Class java.util.EnumSet.elementType accessible: module java.base does not “opens java.util” to unnamed

I get this error when I run this test using JDK 17: I tried adding this to my pom.xml based on other answers: But when I build, I now get this error: Answer @Holger is right, you should not hack into JDK internals. He also explained correctly that –add-opens is not a valid Maven Compiler option. Because he did not

Can JavaFX realistically be used in a non-modular environment?

I’ve attempted to use JavaFX by following instructions found at: https://openjfx.io/openjfx-docs/ under “JavaFX and IntelliJ” -> “Non-modular with Maven” After completing steps 1 & 2 (Installation & Verification) I attempted to run a very simple program from IntelliJ rather than through the Maven plugin. TraderWindow.java TraderWindow.fxml However when I attempted to run it I got: The relevant part: Which, I

gradle Jigsaw module not found

I try to run a very simple gradle project which uses java 9 modules, but i receive the following error. Here is it https://github.com/vad0/test_modules. The main class does basically nothing. It uses only one dependency: HdrHistogram. I included this magic command in build.gradle according to official gradle tutorial https://docs.gradle.org/current/samples/sample_java_modules_multi_project.html. The whole build.gradle looks like this. module.info looks like this I

Lucene split package: module reads package ‘org.apache.lucene.analysis.standard’ from both ‘lucene.analyzers.common’ and ‘lucene.core’

Given my module-info.java: I get the following error: Module ‘my_module’ reads package ‘org.apache.lucene.analysis.standard’ from both ‘lucene.analyzers.common’ and ‘lucene.core’ In my code I use the following imports: How can resolve this split package problem? Answer As you may already know, Lucene doesn’t support the Java Platform Module System properly, so it doesn’t define modules and contains split packages, which don’t work

Eclipse issue with java 9 and maven

I installed Version: Oxygen.1a Release (4.7.1a) Build id: 20171005-1200 supporting Java 9. With suggested configuratio on eclipse.ini I have developed by java 9 (java 9 modularity) code project to test dependency injection as pure Java prject from eclipse, but when I have integrated Maven running my from eclipse I get systematically the following error Error occurred during initialization of boot

Advertisement