javafx-gradle-plugin icon indicating copy to clipboard operation
javafx-gradle-plugin copied to clipboard

NoClassDefFoundError: javafx/application/Application

Open Jimmeh94 opened this issue 3 years ago • 3 comments

Hi there. I'm getting an NoClassDefFoundError: javafx/application/Application exception being thrown.

My build.gradle is here

plugins {
    id 'java'
    //id 'application'
    id 'org.openjfx.javafxplugin' version '0.0.13'
}

repositories {
    mavenCentral()
}

/*application {
    mainModule = 'com.playarcanum.workzone.client.gui'
    mainClass = 'com.playarcanum.workzone.client.gui.WorkzoneGUI'
}*/

javafx {
    version = '17.0.1'
    modules = ['javafx.controls', 'javafx.fxml']
}

I was thinking that maybe I was running the wrong Gradle task, but it seems like the only JavaFX-related task is "configJavafxRun". Any help is greatly appreciated!

Jimmeh94 avatar Aug 19 '22 15:08 Jimmeh94