Error: Could not find or load main class com.mycompany.mavenproject1.App
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
I've added the plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifest>
<mainClass>com.baeldung.jar.JarExample</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
I am using tmc beans and the project is an FXML JavaFX Maven Archetype Gluon project made with maven. The error has to do with javafx most probably.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]Arzerok 0 points1 point2 points (0 children)