Skip to content

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

Answered by AlmasB
nnsns asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for this. It seems the IDE isn't picking up JavaFX modules. You can try adding this workaround as a 2nd class that launches your JavaFX application:

public class Launcher {
    public static void main(String[] args) {
        Application.launch(FXGLearn01App.class, args);
    }
}

Later examples use FXGL, rather than JavaFX, so hopefully there won't be issues of this type.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by nnsns
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants