Skip to content

java.sql not found when compiling #87

@itscool900

Description

@itscool900

When I run mvn clean package, I get the following:

[INFO] 
[INFO] ------------------< me.maxih:itunes-backup-explorer >-------------------
[INFO] Building itunes-backup-explorer 1.7-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- clean:3.2.0:clean (default-clean) @ itunes-backup-explorer ---
[INFO] Deleting /home/s/programs-and-confs/iTunes-Backup-Explorer/target
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ itunes-backup-explorer ---
[INFO] Copying 13 resources from src/main/resources to target/classes
[INFO] 
[INFO] --- compiler:3.13.0:compile (default-compile) @ itunes-backup-explorer ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 24 source files with javac [debug release 18 module-path] to target/classes
[INFO] 
[INFO] --- resources:3.3.1:testResources (default-testResources) @ itunes-backup-explorer ---
[INFO] skip non existing resourceDirectory /home/s/programs-and-confs/iTunes-Backup-Explorer/src/test/resources
[INFO] 
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ itunes-backup-explorer ---
[INFO] No sources to compile
[INFO] 
[INFO] --- surefire:3.2.5:test (default-test) @ itunes-backup-explorer ---
[INFO] No tests to run.
[INFO] 
[INFO] --- dependency:3.7.1:copy-dependencies (copy-dependencies) @ itunes-backup-explorer ---
[INFO] Copying artifact 'org.openjfx:javafx-controls:jar:23:compile' (/home/s/.m2/repository/org/openjfx/javafx-controls/23/javafx-controls-23.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/javafx-controls-23.jar
[INFO] Copying artifact 'org.openjfx:javafx-controls:jar:linux:23:compile' (/home/s/.m2/repository/org/openjfx/javafx-controls/23/javafx-controls-23-linux.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/javafx-controls-23-linux.jar
[INFO] Copying artifact 'org.openjfx:javafx-fxml:jar:23:compile' (/home/s/.m2/repository/org/openjfx/javafx-fxml/23/javafx-fxml-23.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/javafx-fxml-23.jar
[INFO] Copying artifact 'org.openjfx:javafx-fxml:jar:linux:23:compile' (/home/s/.m2/repository/org/openjfx/javafx-fxml/23/javafx-fxml-23-linux.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/javafx-fxml-23-linux.jar
[INFO] Copying artifact 'com.github.3breadt:dd-plist:jar:abf5a22aca:compile' (/home/s/.m2/repository/com/github/3breadt/dd-plist/abf5a22aca/dd-plist-abf5a22aca.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/dd-plist-abf5a22aca.jar
[INFO] Copying artifact 'org.bouncycastle:bcprov-jdk18on:jar:1.80:compile' (/home/s/.m2/repository/org/bouncycastle/bcprov-jdk18on/1.80/bcprov-jdk18on-1.80.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/bcprov-jdk18on-1.80.jar
[INFO] Copying artifact 'org.xerial:sqlite-jdbc:jar:3.49.0.0:compile' (/home/s/.m2/repository/org/xerial/sqlite-jdbc/3.49.0.0/sqlite-jdbc-3.49.0.0.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/sqlite-jdbc-3.49.0.0.jar
[INFO] Copying artifact 'org.openjfx:javafx-graphics:jar:23:compile' (/home/s/.m2/repository/org/openjfx/javafx-graphics/23/javafx-graphics-23.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/javafx-graphics-23.jar
[INFO] Copying artifact 'org.openjfx:javafx-graphics:jar:linux:23:compile' (/home/s/.m2/repository/org/openjfx/javafx-graphics/23/javafx-graphics-23-linux.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/javafx-graphics-23-linux.jar
[INFO] Copying artifact 'org.openjfx:javafx-base:jar:23:compile' (/home/s/.m2/repository/org/openjfx/javafx-base/23/javafx-base-23.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/javafx-base-23.jar
[INFO] Copying artifact 'org.openjfx:javafx-base:jar:linux:23:compile' (/home/s/.m2/repository/org/openjfx/javafx-base/23/javafx-base-23-linux.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/javafx-base-23-linux.jar
[INFO] Copying artifact 'org.slf4j:slf4j-api:jar:2.0.16:compile' (/home/s/.m2/repository/org/slf4j/slf4j-api/2.0.16/slf4j-api-2.0.16.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/slf4j-api-2.0.16.jar
[INFO] Copying artifact 'org.slf4j:slf4j-simple:jar:2.0.16:compile' (/home/s/.m2/repository/org/slf4j/slf4j-simple/2.0.16/slf4j-simple-2.0.16.jar) to /home/s/programs-and-confs/iTunes-Backup-Explorer/target/libs/slf4j-simple-2.0.16.jar
[INFO] 
[INFO] --- jar:3.4.1:jar (default-jar) @ itunes-backup-explorer ---
[INFO] Building jar: /home/s/programs-and-confs/iTunes-Backup-Explorer/target/itunes-backup-explorer-1.7-SNAPSHOT.jar
[INFO] 
[INFO] --- exec:3.3.0:exec (build-linux-installer) @ itunes-backup-explorer ---
Detected modules: dd.plist,java.base,java.desktop,java.prefs,java.sql,javafx.controls,javafx.fxml,org.bouncycastle.provider
Generating runtime image...
Error: Module java.sql not found
java.lang.module.FindException: Module java.sql not found
	at java.base/java.lang.module.Resolver.findFail(Resolver.java:892)
	at java.base/java.lang.module.Resolver.resolve(Resolver.java:129)
	at java.base/java.lang.module.Configuration.resolve(Configuration.java:420)
	at java.base/java.lang.module.Configuration.resolve(Configuration.java:254)
	at jdk.jlink/jdk.tools.jlink.internal.Jlink$JlinkConfiguration.resolve(Jlink.java:217)
	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImageProvider(JlinkTask.java:523)
	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:411)
	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:286)
	at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:56)
	at jdk.jlink/jdk.tools.jlink.internal.Main.main(Main.java:34)
Packaging...
Specified runtime image directory runtime-image: target/runtime-image does not exist
Error: App image directory "target/app-image/itunes-backup-explorer" does not exist
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:355)
    at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:253)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:884)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:844)
    at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:450)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
    at java.lang.reflect.Method.invoke (Method.java:580)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.555 s
[INFO] Finished at: 2025-12-17T23:48:30-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.3.0:exec (build-linux-installer) on project itunes-backup-explorer: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Using Apache Maven and OpenJDK21 on Void Linux.
What's wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions