Questions tagged [jlink]

jlink is a tool used in Java 9 or higher to assemble and optimize a set of modules and their dependencies into a custom runtime image. The tag can be used along with java9 or above tag mostly.

The several options used by the tool are documented here.. Its primary syntax is as follows:

jlink [options] --module-path modulepath --add-modules mods --output path
268 questions
0
votes
1 answer

jlink showing error while comparing hashes

I am currently trying to bundle a javaFx test application via maven and jlink into a runtime image. I am using bellsoft liberica 18.0.1 as a jdk and I am running on a IntelliJ IDE. I have used the IDE to setup the project initially (via the…
Christian
  • 303
  • 2
  • 15
0
votes
2 answers

Unable to connect from jconsole to an application built with jlink

I have written a Java 17 application that provides several MBeans. If I start the jar with a standard Java 17 SDK via java -jar myjar.jar the applications starts and I can connect to it from JConsole. Then I have created a custom runtime image with…
0
votes
1 answer

jlink error because of java.xml.bind module

I working on a javafx project, and I have a problem when I try to use jlink to make my image. My java version : java 19 2022-09-20 Here is my module-info.java : module org.aned.mosaic { exports mosaic; requires java.logging; requires…
0
votes
0 answers

How can I accesses files that are in package's build directory(Baddas jlink)?

Recently I have been working on a project in which I must use baddas jlink's jpackage to build that project. I have problems accessing files in jpackage's build directory. Let me give an example: Now here, I want to access settings.properties file…
proh14
  • 21
  • 6
0
votes
0 answers

JavaFX Application Image with ojdbc driver

I'm currently trying to deploy a JavaFX Application with jlink. I have added the Maven Dependency for the jdbc Driver to establish a Connection to our Oracle Database . When I'm starting the Code from IntelliJ it is working fine. After the image is…
0
votes
1 answer

Will creating non modular application require me to separate my modular from non-modular dependencies

I am upgrading a legacy application to java 11. Currently we don't use maven or gradle. As i've updated it, i've replaced certain libraries that have been removed from the jdk in 11. Some of the newer dependencies i've added contain module-info.java…
janst
  • 102
  • 10
0
votes
1 answer

jlink created runtime hangs on windows when add-options is used

When I create a runtime using C:\oracle\jdk-11.0.15\bin\jlink --add-modules ALL-MODULE-PATH --output jre --strip-debug --no-man-pages --no-header-files --compress=2 --module-path "C:\oracle\jdk-11.0.15\jmods" --output compressedrt…
Sergey Rymsha
  • 91
  • 1
  • 3
0
votes
1 answer

Build and deploy JavaFX Applicationn with jlink

I have a script build.gradle, which created the IDEA development environment when creating a JavaFX project with Gradle support: plugins { id 'java' id 'application' id 'org.openjfx.javafxplugin' version '0.0.10' id 'org.beryx.jlink'…
0
votes
1 answer

on Ubuntu jlink does not generate .bat script, only bash script

I am trying to create a custom JRE with laucher scripts using this guide. I am running Ubuntu 20.04, and at the end I got only the bash script in the bin folder, but wasn't it supposed for jlink to create both .bat and bash scripts?
Kalich
  • 87
  • 2
  • 6
0
votes
1 answer

Created .exe from jpackager crashes

I have a JavaFX Project, which I want to export as a dmg and exe. The export as a dmg file for Mac was no problem. But the export as a .exe file for Windows is not working. I created a jar file and I ran jlink. Then I exported the project with…
GregGott
  • 95
  • 9
0
votes
0 answers

Exported JavaFX Application file size is too big

I have my own project(https://github.com/reinvert/CrossStitchConverter) And I always compile the project on eclipse by File-Export-Runnable JAR File-(Library handling)Package required libraries into generated JAR. It works fine, but the jar file…
Reinvert
  • 1
  • 1
0
votes
2 answers

How do I configure the --output of jlink command in maven-jlink-plugin?

I'm trying to generate a JRE using maven-jlink-plugin, just as I would with the jlink command. I started doing a maven configuration like this : maven-jlink-plugin 3.1.0
Sybuser
  • 735
  • 10
  • 27
0
votes
0 answers

Jlink Java custom run time from eclipse IDE

Is it possible to create custom Java runtime using jlink from within eclipse IDE for a specific project? If so, how? I was trying jlink from terminal and was able to build custom Java runtime. However for more complex projects which has multiple…
srock
  • 403
  • 1
  • 8
  • 17
0
votes
0 answers

Java JRE what Modules are needed for Webdrivermanager?

I have created an exe with launch4j that does with the help of Selenium and Webdrivermanager some webautomation. For this I created a small Java Runtime Engine. To create it I used jdeps to get all required dependencies: jdeps -s file.jar. But as…
Muddyblack k
  • 314
  • 3
  • 16
0
votes
2 answers

Required filename-based automodules detected. Please don't publish this project to a public artifact repository

so i made a very simple java Project with Maven in which i used a Libary jnativehook and in intellij it works just fine but when i use jlink to export it this Warning comes up Required filename-based automodules detected. Please don't publish this…