When I try to build my javafx application in intellij as a JavaFX Application and I run the jar in console with
java -jar RaspberryShell.jar
I get this error:
Error: Could not find or load main class de.Jan.Raspberry.Shell.Main
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
I also set the main class in the artifact that shouldn't be a problem and the code runs fine if I run it direct in intellij.
Does anyone have ideas?