I'm currently working on a university assignment which requires me to create an application using Java. I'm using IntelliJ IDEA to create this JavaFX application.
I can build and run the application from IntelliJ directly - I've used tutorials such as this to help me do so. This allows the application to run perfectly.
However, upon building the JAR file, the application won't load, and throws the following error:
Error: JavaFX runtime components are missing, and are required to run this application
I can't seem to understand why this would be the case but hoping someone here might know. I've looked around for similar questions - I haven't found one where the error is ONLY when running the JAR file.
I'm using OpenJDK 11 and OpenJFX 11.
Any help provided is much appreciated.