#Error JavaFX runtime components are missing, and are required to run this application

14 messages · Page 1 of 1 (latest)

nocturne harbor
#

I added vm options to the run configuration and built the app but I cannot seem to get it to work.

#

--module-path "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\javaFX\lib" --add-modules javafx.fxml,javafx.controls,javafx.graphics

tepid steeple
#

Hello, if you are using intelliJ to run the application, you have to manually add dependencies for JavaFX. But I would recommend to use Maven or Gradle to handle dependencies. IntelliJ is smart enough to include all libraries based on Maven/Gradle config

nocturne harbor
tepid steeple
#

AFAIK the app.jar must contains MANIFEST where are written all dependencies. Java than load them...

tepid steeple
#

in the built app, there should be a file called MANIFEST. In this file are described all dependencies.

nocturne harbor
tepid steeple
#

all .jar files are zip archives. You can open it and find the manifest in META-INF directory

nocturne harbor
#

Not sure if gradle bundles those components or if I need those externally

tepid steeple
#

I know I have to specify it in Maven builds

gleaming iris
#

@nocturne harbor if you are done with the channel pls close it