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

where does exeutable app made by JPackage save its local resources

I chose to put my SQLite database files in local resources and packaged my application using JPackage. The issue is whenever I delete the application from my desktop and reinstall it, the database data don't get deleted (with the deletion of the…
Youssef Idraiss
  • 396
  • 5
  • 19
0
votes
1 answer

Unexpected exception caught: com.ptc.pfc.Implementation.pfcExceptions$XToolkitGeneralError while running AsyncInstallTest

Can any one help to write simple program using jlink java to open creo tool on executing of java program. what i have done so far is, installed creo-5.0.0.0 and JDK 8 and JLink i was trying to execute some programs, i get above error. May i know if…
0
votes
0 answers

Java static linking of user modules without building a JRE runtime image

Since java 9 I can use jlink to create a custom Java runtime image that contains all modules required for my application, and only them. This can serve as a kind of static linking tool for Java, reducing the chance of ClassNotFoundException…
Gonen I
  • 5,576
  • 1
  • 29
  • 60
0
votes
0 answers

create-runtime-image goal failed using Moditect

I want to generate a module-info.java and create a runtime image for my java project in Windows. I'm using Moditect (https://github.com/moditect/moditect), and this is my pom.xml so far.
Jay Ren
  • 61
  • 1
  • 6
0
votes
2 answers

How to make a JRE for a 32 bits windows O/S with jlink?

I´m having troubles because I need to install a Java 16 app in a computer with 32-bit Windows. I don't have problems when I make a JRE with jlink for 64-bit Windows. Is there any argument that you can put in the jlink command to specify the…
matt020java
  • 49
  • 1
  • 4
0
votes
1 answer

I do not see the Java image when I tried to create a maven jlink

I create a simple project where I want to create windows image. I have a maven project with maven-jlink-plugin. I am using Netbeans and Widows 10. When I create the image it looks like fine but I do not see the .bath file. …
jean
  • 3
  • 1
0
votes
1 answer

How to add external libraries to custom runtime image using jlink?

I want to add external libraries needed by my project to the custom runtime image. I use the following external libraries in my project: vlcj.jar, vlcj-javafx.jar For vlcj.jar to work I also need to add external libraries: jna.jar, jna-platform.jar,…
Dmitriy
  • 375
  • 1
  • 18
0
votes
1 answer

jpackage not found - mac OS

I'm trying to make my .jar file with the javafx stuff into an executable application, but when I try to do jpackage on the command line, I'm getting command not found. I've downloaded the latest jdk-15.0.1_osx-x64_bin.dmg from Oracle.
0
votes
0 answers

goal org.openjfx:javafx-maven-plugin:0.0.4:jlink failed: Cannot invoke "java.io.File.getAbsolutePath()" because "dir" is null

I am trying to build (have built) a JavaFX application using maven and IntelliJ. However when I try to run the maven javafx:jlink I keep getting an error saying Failed to execute goal org.openjfx:javafx-maven-plugin:0.0.4:jlink (default-cli) on…
0
votes
1 answer

How to jlink when my own module is not found?

I have a directory structure like this: TestJlink -src --module-info.java --com ---company ----TestJLink -----TestJLink.java I run this jlink --module-path src --add-modules com.company.TestJLink --output outputJRE I get Error: Module…
coloradoman
  • 341
  • 1
  • 5
  • 11
0
votes
1 answer

java.base missing while trying jlink

I am getting this Error: Module java.base not found while trying to use jlink. These are the 2 things I have tried so far /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/bin/jlink --module-path "%JAVA_HOME%\jmods":mods --add-modules…
coloradoman
  • 341
  • 1
  • 5
  • 11
0
votes
1 answer

Handshake failure when loading images from external url on JLink build

Solved - See my answer Problem I'm trying to load images from external URLs and set them to an ImageView using JavaFX. It always works when running inside the IDE, but when I build the project using JLink, only images from a few URLs…
Picoral
  • 199
  • 1
  • 2
  • 13
0
votes
0 answers

Getting error when using jlink to create a runtime image with Time4J CalendarPicker

I am using the Time4J library's Persian calendar picker. When I run the app with ./gradlew run I see it running. But when I launch the JavaFX runtime image of the app, that I build using the Badass JLink Plugin, I get this error: Caused by:…
pooya
  • 1
  • 3
0
votes
0 answers

Required filename-based automodules detected - Javafx

I just built a JavaFX application and now I'm struggling to package it. I'm getting the following error: Required filename-based automodules detected. Please don't publish this project to a public artifact repository! Specifically, these libs: *…
Ryan
  • 1,102
  • 1
  • 15
  • 30
0
votes
0 answers

Is it possible to port my 64 bit JavaFX App to 32 bit?

I have deployed a JavaFX Application using JLink to generate a .msi installer. However, I just now learned that this app won't work on a 32 bit machine, since it's runtime uses Java 14, which is 64 bit. Unfortunately, Oracle stopped releasing 32 bit…
Allan Juan
  • 2,048
  • 1
  • 18
  • 42