Verursacht durch: java.lang.NoClassDefFoundError: javafx/application/ApplicationJava

Java-Forum
Anonymous
 Verursacht durch: java.lang.NoClassDefFoundError: javafx/application/Application

Post by Anonymous »

Wenn ich versuche, meine Javafx-Anwendung in Intellij als JavaFX-Anwendung zu erstellen und das JAR in der Konsole mit

java -jar RaspberryShell.jar

ausführe, erhalte ich diese Fehlermeldung:

Code: Select all

Error: Could not find or load main class de.Jan.Raspberry.Shell.Main
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
Ich habe auch die Hauptklasse im Artefakt festgelegt, was kein Problem darstellen sollte, und der Code läuft einwandfrei, wenn ich ihn direkt in Intellij ausführe.
Hat jemand Ideen?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post