Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javafx:jlink JDK21 - Error: Module java.base not found, required by app #175

Open
SunriseCoder opened this issue Oct 22, 2023 · 0 comments

Comments

@SunriseCoder
Copy link

SunriseCoder commented Oct 22, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant