jarkanoid icon indicating copy to clipboard operation
jarkanoid copied to clipboard

java.lang.module.ResolutionException when launching the app

Open juananpe opened this issue 2 years ago • 3 comments

Hi,

Thanks for sharing your work.

I'm trying to run the application starting it from the Launcher class.

image

But everytime that I try I get this exception

> Task :Launcher.main() FAILED
Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Module eu.hansolo.fx.jarkanoid contains package javafx.collections.transformation, module javafx.base exports package javafx.collections.transformation to eu.hansolo.fx.jarkanoid

The strange thing is that the exception message varies with each execution:

Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Module eu.hansolo.fx.jarkanoid contains package javafx.scene.control, module javafx.controls exports package javafx.scene.control to eu.hansolo.fx.jarkanoid

Or:

Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Module eu.hansolo.fx.jarkanoid contains package javafx.beans, module javafx.base exports package javafx.beans to eu.hansolo.fx.jarkanoid

Any help will be much appreciated.

My configuration is the following: openjdk-19.0.2, IntelliJ IDEA 2022.3.2 (Ultimate Edition) and macOS Ventura.

juananpe avatar Feb 15 '23 22:02 juananpe