Repository navigation
Open
Labels
Description
JavaPackager version
1.7.6
Operating system
Windows
OS version
windows11
Build tool
Maven
JDK version
jdk21
Short description
The icon of the running main process is still that of openjdk
Steps to reproduce
You can take a look at my open source project:
https://github.com/tanhuang2016/RedisFX
The path of pom:
https://github.com/tanhuang2016/RedisFX/blob/main/rdm-ui/pom.xml
Download path for the installation package:
https://github.com/tanhuang2016/RedisFX/releases/download/v2.3.11/rdm-ui-2.3.11-windows-x86_64.exe
Expected behavior
The icon of openjdk should not be displayed,It should display its own icon just like idea

Actual behavior
The icon of openjdk is displayed
Logs and output
This is the main configuration of pom
<build>
<plugins>
<plugin>
<groupId>io.github.fvarrui</groupId>
<artifactId>javapackager</artifactId>
<!--这个版本可以打出msi和msm-->
<version>1.7.6</version>
<executions>
<execution>
<id>bundling-for-windows-amd64</id>
<phase>package</phase>
<goals>
<goal>package</goal>
</goals>
<configuration>
<mainClass>redisfx.tanh.rdm.ui.Main</mainClass>
<bundleJre>true</bundleJre>
<modules>${modules}</modules>
<!-- <jdkPath>D:\soft\jdk\jdk-21_windows-x64_bin\jdk-21.0.7</jdkPath>-->
<jdkPath>${env.JAVA_HOME}</jdkPath>
<generateInstaller>true</generateInstaller>
<administratorRequired>false</administratorRequired>
<platform>windows</platform>
<createZipball>true</createZipball>
<!-- <additionalResources>-->
<!-- <additionalResource>${name}.l4j.ini</additionalResource>-->
<!-- </additionalResources>-->
<winConfig>
<!-- <headerType>console</headerType>-->
<icoFile>src/main/resources/icon/fx_icon_256.ico</icoFile>
<generateSetup>true</generateSetup>
<setupLanguages>
<english>compiler:Default.isl</english>
</setupLanguages>
<wrapJar>true</wrapJar>
<generateMsi>true</generateMsi>
<generateMsm>true</generateMsm>
<disableDirPage>false</disableDirPage>
<disableProgramGroupPage>false</disableProgramGroupPage>
<disableFinishedPage>false</disableFinishedPage>
<disableRunAfterInstall>false</disableRunAfterInstall>
<disableWelcomePage>false</disableWelcomePage>
</winConfig>
<vmArgs>
<arg>--module-path</arg>
<arg>libs</arg>
<arg>--add-modules</arg>
<arg>javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web,javafx.base</arg>
</vmArgs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Checklist
- I searched for existing related issues
- I can provide a minimal reproducible example if needed
Activity
fvarrui commentedon Oct 4, 2026
Thanks for the detailed report. This comes from how Launch4j works, the default
exeCreationTool: your EXE starts the bundledjavaw.exeas a separate process, so the running process shown by Task Manager (and grouped in the taskbar) is the JDK's, with its icon.Two things you can try:
winConfig.exeCreationToolset towinrun4jorwhy: both load the JVM inside your own EXE, so the running process is your app.stage.getIcons().add(...)).Could you tell us whether
winrun4jorwhysolves it for you?fvarrui commentedon Oct 4, 2026
Quick update:
2.0.0-rc1is now on Maven Central, so you can test the fix without the snapshots repository, just with the new coordinates:io.github.javapackager:javapackager:2.0.0-rc1classpath 'io.github.javapackager:javapackager:2.0.0-rc1'andapply plugin: 'io.github.javapackager'Release notes and upgrade guide: https://github.com/javapackager/JavaPackager/releases/tag/v2.0.0-rc1. Feedback before the final 2.0.0 release would be very welcome!