Answer the question
In order to leave comments, you need to log in
Why do I get the error "Error: JavaFX runtime components are missing, and are required to run this application" when I run a JAR file?
Good afternoon. I am new to programming. My task is to create a JAR file from the simplest JavaFX project. The file is created without problems, but when I try to run it, I get the error "Error: JavaFX runtime components are missing, and are required to run this application" . It's been two days since I tried to fix the problem. Help me please.
All settings and JAR creation process can be seen in the screenshots.
JAR Creation
The result after trying to run the JAR.
Answer the question
In order to leave comments, you need to log in
Here is the official article from Intellij IDEA on how to create a project with JavaFX: https://www.jetbrains.com/help/idea/javafx.html
ps After installing the JavaFX library, you need to set up a virtual machine in IDEA, everything is described in the article, nothing too complicated this is not.
Error: JavaFX runtime components are missing, and are required to run this application
Is there a version with gredl or maven? I moved to VsCode a long time ago. I do not remember how the idea collects there.
You need to verbose a build. See what the idea brings to you. There must be some sort of log.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question