When I use `org.xerial:sqlite-jdbc:sqliteJdbc`, th...
# compose-desktop
h
When I use
org.xerial:sqlite-jdbc:sqliteJdbc
, the packaging or distribution fails with the error:
java.lang.module.FindException: Module java.sql not found, required by main
. Could you help me resolve this?
o
In your
build.gradle(.kts)
, within the
compose.desktop.nativeDistributions
section, you can add
modules
.
Copy code
modules(
    // for org.apache.logging.log4j.core.LoggerContext
    "java.management",
    // for DriverManager (required by SQLite JDBC driver)
    "java.sql",
)
(these 2 are my personal setup, adjust to your own needs)
h
thanks !! resolved!
👍 1