Skip to content

NoClassDefFoundError when using external package #53

Answered by wiverson
joshuajeschek asked this question in Q&A
Discussion options

You must be logged in to vote

Try adding java.sql to the line in the pom.xml

<jvm.modules>javafx.media,javafx.controls,javafx.fxml,java.logging,java.sql</jvm.modules>

I believe it's working in your IDE because that's defaulting to running the full JVM. When this template invokes jlink to produce a trimmed JVM it only includes the parts of the JDK you requested.

Let me know if this works, and happy holidays!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@joshuajeschek
Comment options

@wiverson
Comment options

Answer selected by joshuajeschek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #52 on December 29, 2021 01:10.