I'm trying to build a runtime image for my project, but I getting the following error:
[DEBUG] Executing command line: [C:\Java\jdkfx-21.0.1\bin\jlink.exe, --module-path, d:\projects\java\processing-toolkit\target\classes;C:\Users\Sun.m2\repository\org\openjfx\javafx-base\21.0.1\javafx-base-21.0.1-win.jar;C:\Users\Sun.m2\repository\org\openjfx\javafx-controls\21.0.1\javafx-controls-21.0.1-win.jar;C:\Users\Sun.m2\repository\org\openjfx\javafx-graphics\21.0.1\javafx-graphics-21.0.1-win.jar, --add-modules, app, --output, d:\projects\java\processing-toolkit\target\image, --compress, 0, --verbose]
Error: Module java.base not found, required by app
java.lang.module.FindException: Module java.base not found, required by app
I don't know, should the module path in the last [DEBUG] be like this, because it seems that jdk itself is missing...
Here is how I created custom JDK, which is attached to JAVA_HOME system variable:
create-custom-jdk.txt
Here is my pom.xml file (I renamed it to pom.xml.txt here because github doesn't allow to attach xml-files, but in the project it is pom.xml):
pom.xml.txt
Hello!
I'm trying to build a runtime image for my project, but I getting the following error: [DEBUG] Executing command line: [C:\Java\jdkfx-21.0.1\bin\jlink.exe, --module-path, d:\projects\java\processing-toolkit\target\classes;C:\Users\Sun.m2\repository\org\openjfx\javafx-base\21.0.1\javafx-base-21.0.1-win.jar;C:\Users\Sun.m2\repository\org\openjfx\javafx-controls\21.0.1\javafx-controls-21.0.1-win.jar;C:\Users\Sun.m2\repository\org\openjfx\javafx-graphics\21.0.1\javafx-graphics-21.0.1-win.jar, --add-modules, app, --output, d:\projects\java\processing-toolkit\target\image, --compress, 0, --verbose] Error: Module java.base not found, required by app java.lang.module.FindException: Module java.base not found, required by app
I don't know, should the module path in the last [DEBUG] be like this, because it seems that jdk itself is missing...
Here is how I created custom JDK, which is attached to JAVA_HOME system variable: create-custom-jdk.txt
Here is my pom.xml file (I renamed it to pom.xml.txt here because github doesn't allow to attach xml-files, but in the project it is pom.xml): pom.xml.txt
Here is the build output: build-output.txt
So could anybody please give me an idea what could be the problem or what direction to dig to figure it out? Thank You very much in advance.
PS. Command
mvn clean javafx:run
works perfectly.