#Cant start my JavaFX jar

1 messages · Page 1 of 1 (latest)

dreamy latch
#

Error: Could not find or load main class xyz.cvso.meteorplusplusinstaller.LoginApp
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

odd flintBOT
#

<@&987246487241105418> please have a look, thanks.

dreamy latch
#

Im running it using

java -jar MeteorPlusPlus-Installer-1.0-SNAPSHOT.jar
fallow jackal
#

Are you using a build tool to include javafx in your package? Like the maven-shade-plugin?

dreamy latch
#

Im using gradle to build

#

just running that

fallow jackal
dreamy latch
#

ty

fallow jackal
#

You're welcome.

dreamy latch
#

Build file 'C:\Users\cvs0_\Documents\GitHub\MeteorPlusPlus-Installer-JavaFX\MeteorPlusPlus-Installer\build.gradle' line: 24

A problem occurred evaluating root project 'MeteorPlusPlus-Installer'.

Could not find method compile() for arguments [org.openjfx:javafx-base:17:win] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

#

Wait sorry. Compile was removed in gradle 7.0

#

error: module not found: javafx.fxml
requires javafx.fxml;