我使用Launch4j重命名我的Java进程以进行唯一标识。我已在所需的xml文件中将节点customProcName设置为true。但我仍然将javaw.exe作为Windows任务管理器中的进程/映像名称。下面是我用来启动应用程序的xml代码。请建议
<?xml version="1.0" encoding="UTF-8"?>
<launch4jConfig>
<customProcName>true</customProcName>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>D:\MQLink_Installers_Files\TestLaunch_fat.jar</jar>
<outfile>D:\MQLink_Installers_Files\MyMain.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir>.</chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<stayAlive>false</stayAlive>
<restartOnCrash>false</restartOnCrash>
<manifest></manifest>
<icon></icon>
<classPath>
<mainClass>MyMain</mainClass>
</classPath>
<jre>
<path></path>
<bundledJre64Bit>false</bundledJre64Bit>
<bundledJreAsFallback>false</bundledJreAsFallback>
<minVersion>1.6.0</minVersion>
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits>
</jre>
<versionInfo>
<fileVersion>1.0.0.0</fileVersion>
<txtFileVersion>1.0</txtFileVersion>
<fileDescription>MyMain</fileDescription>
<copyright>Copyright (c) 2011 Fsp</copyright>
<productVersion>1.0.0.0</productVersion>
<txtProductVersion>1.0</txtProductVersion>
<productName>MyMain</productName>
<companyName>Fsp</companyName>
<internalName>MyMain</internalName>
<originalFilename>MyMain.exe</originalFilename>
</versionInfo>
</launch4jConfig>
修改 问题是我手动将true设置为xml文件。当我保存&amp;从launch4j向导创建一个新的构建,将覆盖xml文件。不确定如何从launch4j向导设置customProcName。