Skip to content
Advertisement

JavaFX runtime components are missing, even though I already have them in my VM options and Modules

I am getting this error:

JavaScript

I checked multiple solutions on YouTube and StackOverflow such as https://www.youtube.com/watch?v=KKI7tDozPog and Error: JavaFX runtime components are missing, and are required to run this application with JDK 11

As a result, I followed their advice and added what they said to my VM options. This is what I have in my run configuration

enter image description here

Despite this however, I still encountered this error.

enter image description here

Here are some code that I have:

My pom.xml file

JavaScript

My application

JavaScript

My dependencies in modules of project structure

enter image description here

A response is appreciated.

Advertisement

Answer

Okay, so I found out why this is occurring.

I put the module path and add modules in the program arguments and not in the vm options, which is what is causing the red issue.

Now I am encountering a “Error occurred during initialization of boot layer” issue now.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement