Skip to content
Advertisement

Tag: jpackage

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 jpackage. Here is the command: On my

How to add dependencies to DEB created by JPackage?

I have a java application that I package with jpackage and receive a debian package. At runtime the application relies on another piece of software being installed, and it comes from another debian package. I want the Ubuntu package manager to automatically resolve this dependency. But that means I have to declare the dependency somehow in my debian package. What

How to package JavaFX + Spring Boot application via jpackage correctly?

I’m having trouble packaging my project using jpackage by badass jlink plugin. Project contains Spring Boot, which works with JavaFX via FXVeawer. And with Spring Data application works with Database. My build.gradle: Application is packaging, but due to error Caused by: org.springframework.cglib.core.CodeGenerationException: java.lang.IllegalAccessException–>module spring.geodemo does not open spring.geodemo to unnamed module @39cd0bac does not start. I have no idea what

Java program uses wrong locale when jpackaged

I am parsing strings representing German-style numbers (i.e., decimal comma and optional full stop for grouping thousands), e.g., “2.804,13”; this is just done using a DecimalFormat based on my desired Locale: This gives the desired output, e.g., when compiled and run from the command line: However, when I bundle it as a jpackage image (./gradlew jpackageImage using Gradle and the

JPackage Wrong Version (%JAVA_HOME% set to correct directory)

Please help. I’m having issues syncing up my JDK and jpackage versions for creating standalone java programs. The JDK version and the runtime version being included with jpackage are mismatched (JDK16 programs being paired with JDK15 runtimes). Typing java -version into the command line, it matches up with the current %JAVA_HOME% environment variable configuration, showing JDK16.0.2 (located at C:Program FilesJavajdk-16.0.2).

Advertisement