Error occurred during initialization of boot layer java.lang.module. FindException: Module javafx.controls not found

SassyViking :

I am trying to build the sample javaFX application in the Intellij 2018.3 IDE. I have installed the oracle JDK11, and downloaded openjfk11. I created a library linked to the javafx sdk and added the line --module-path=${PATH_TO_FX} --add-modules=javafx.controls,javafx.fxml to the VM options line. PATH_TO_FX is defined as an environment variable pointing to my javaFX folder.

I have searched through a number of postings on this site, including This solution to my exact error message. The odd thing I cannot figure out is, This solution works for me if there is no build directory. But if I have already built the project once, it then refuses to run and gives me the stated error. If I delete the build directory and try again, then the program runs correctly again.

SassyViking :

Well It looks like I just goofed up something with the output directory because this morning I tried resetting the build path to the default and it just started working.

Este artículo se recopila de Internet, indique la fuente cuando se vuelva a imprimir.

En caso de infracción, por favor [email protected] Eliminar

Editado en
0

Déjame decir algunas palabras

0Comentarios
Iniciar sesiónRevisión de participación posterior

Artículos relacionados

How can I resolve this error. Using rest assured & eclipse :Error occurred during initialization of boot layer java.lang.module.FindException:

Se produjo un error durante la inicialización de la capa de arranque java.lang.module. FindException: módulo javafx.controls no encontrado

Java 10 Eclipse + Maven "java.lang.module.FindException: Module myproject not found"

java 13 eclipse: java.lang.module.FindException: Module AbaloneGame no encontrado

Java 10 Eclipse + Maven "java.lang.module.FindException: módulo myproject no encontrado"

Jmeter - OpenJDK: java.lang.module.FindException: java.activation Módulo no encontrado

AWS Lambda module initialization error

ошибка в файле module-info.java в проекте javafx

Import error: module object detection not found

Corrupt VBA Project Module Not Found Error

Runtime error in docker container, Module not found

getting "module initialization error" after deploying sls code from windows

java.lang.RuntimeException: Error al escanear la entrada module-info.class de jar

java.lang.RuntimeException: Error al escanear la entrada module-info.class de jar

JavaFX module javafx.graphics

Module not found after setuptools

Network module not found

Nodo MODULE_NOT_FOUND

AzerothCore module configuration not found

Module object not found

JavaFX y Maven en IntelliJ: Conjunto JAVA_HOME pero "no reconocido opción --module-path" persistencia de error

"Module not found" Error when deploying Nuxtjs app to Netlify

Error al ejecutar servicio iónico - MODULE_NOT_FOUND

Rust / Wasm : Module not found : Error : Ca n't resolve 'env'in

Module Not Found Error in Python 3.6 on windows command prompt

Python throwing a "module not found" error for python-vlc

module not found error problem when trying to import from another folder

An internal error occurred during: "Publishing to WAS 8559 ..."

Module not found: Error: Cannot resolve module 'react-addons-test-utils'