NoClassDefFoundError while trying to run javafx programs made with maven.

This page summarizes the projects mentioned and recommended in the original post on /r/javahelp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • AsteroidsApp

  • Initially, I thought that the manifest file was missing/erroneous but upon checking I found that to be false. I then tried adding the VM arguments for the javafx modules being used but in vain ( Maven uses dependencies right? not the javafx libraries added to the ide manually). I've looked up numerous existing solutions on the web but they didn't work for me. I've studied the pom.xml file as much as I could and it does contain the dependencies required for javafx. I have uploaded the project to a github repository and appended it to the post. (The project was actually an ant java project but I copied it after refactoring to just test compiling with maven. That's the reason it has an additional app class. Otherwise, AsteroidsApp would be the only main class. I refrained from removing anything because I am quite new to this and don't want to entangle myself more. https://github.com/TSP2912/AsteroidsApp.git

  • samples

    JavaFX samples to run with different options and build tools (by openjfx)

  • If you're relatively new to this, I would recommend checking out the JavaFX documentation at https://openjfx.io/openjfx-docs/#maven and starting from the samples: https://github.com/openjfx/samples/tree/master/HelloFX/Maven

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts