-1

I'm creating javafx app, and Im trying to connect it with the mysql database. When I created module, I got error listed here: Error occurred during initialization of boot layer java.lang.module.FindException: Module softverskiProcesi not found

Project structure: enter image description here

VM options: --module-path ${PATH_TO_FX} --add-modules=javafx.controls,javafx.fxml

Modules: enter image description here

Path variables: enter image description here

java --version openjdk 11.0.14 2022-01-18 LTS OpenJDK Runtime Environment Microsoft-30257 (build 11.0.14+9-LTS) OpenJDK 64-Bit Server VM Microsoft-30257 (build 11.0.14+9-LTS, mixed mode)

Can anyone help me with this? Tried with: java.lang.module.FindException: Module not found but seems like it doesn't help me.

  • Is `${PATH_TO_FX}` set? And if so, what does the folder it is set to contain? – James_D May 29 '22 at 19:19
  • @James_D It is, same value as the one in the Intellij. lib folder contains files: javafx.base.jar, java.fx.controls.jar, javafx.fxml.jar, javafx.graphics.jar, javafx.media.jar, javafx.properties, javafx.swing.jar, javafx.web.jar, javafx-swt.jar – Stefan Marjanović May 29 '22 at 19:29
  • 1
    I advise following these steps to use the [idea new JavaFX project wizard with Maven](https://stackoverflow.com/questions/71498158/java-lang-module-findexception-module-test-not-foundintellidea). – jewelsea May 30 '22 at 02:01

0 Answers0