-
Notifications
You must be signed in to change notification settings - Fork 29
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
jlink --vm parameter #117
Comments
Hello, Different OpenJDK distributives provide different set of VMs, so you should use --vm option to get the expected result. Liberica JDK offers three VMs (Server, Client, Minimal) on some platforms, as well as additional components - OpenJFX, etc.
) You can use it your own way and add any VM to resulting image. If you would like to get only Client or Server, add Also you can use the following options to control result image:
Thanks! |
Following up this SO question, it seems that jlink from Liberica behaves differently from the one in Oracle JDK or in Temurin. Using version 19 and running the command
jlink --add-modules java.base --output ./out
generates a vm that containsclient
,server
andminimal
in itslib
subdirectory. Running the same command in Oracle JDK or Temurin it only generatesserver
.You can get the same result with Liberica by using the argument
--vm=server
but, as pointed out in the SO replies, thevm
argument shouldn't be used.To add some context, I was using Temurin and switched to Liberica for my JavaFX app. I realized the jlinked image was bigger because it contained those lib subdirectory and I ended up using
--vm=client
. Used jpackage pointing to the generated jvm to package my application and the .exe generated by jpackage fails to run.The text was updated successfully, but these errors were encountered: