Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法使用launch4j重命名进程/映像名称_Java_Xml_Jakarta Ee_Process_Launch4j - Fatal编程技术网

Java 无法使用launch4j重命名进程/映像名称

Java 无法使用launch4j重命名进程/映像名称,java,xml,jakarta-ee,process,launch4j,Java,Xml,Jakarta Ee,Process,Launch4j,我正在使用Launch4j重命名我的Java进程以获得唯一标识。我已在所需的xml文件中将节点customProcName设置为true。但我仍然在windows任务管理器中获得javaw.exe作为进程/映像名。下面是我用来启动应用程序的xml代码。请建议 <?xml version="1.0" encoding="UTF-8"?> <launch4jConfig> <customProcName>true</customProcName&g

我正在使用Launch4j重命名我的Java进程以获得唯一标识。我已在所需的xml文件中将节点customProcName设置为true。但我仍然在windows任务管理器中获得javaw.exe作为进程/映像名。下面是我用来启动应用程序的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>

真的
假的
桂
D:\MQLink\u Installers\u Files\TestLaunch\u fat.jar
D:\MQLink\u安装程序\u文件\MyMain.exe
.
正常的
http://java.com/download
假的
假的
梅因
假的
假的
1.6.0
首选
64/32
1.0.0.0
1
梅因
版权所有(c)2011 Fsp
1.0.0.0
1
梅因
Fsp
梅因
MyMain.exe
编辑:
问题是我正在将true手动设置到xml文件中。当我从launch4j向导保存并创建一个新的构建时,xml文件被覆盖。不确定如何从launch4j向导中设置customProcName。

似乎已放弃对customProcName的支持


请参阅:

您是否尝试在IDE中使用Maven插件?因此,您不必使用向导。对我来说,它只在我将标题类型设置为“Console”时起作用。请让我知道,如果有人发现了一个解决方案,也适用于标题'图形用户界面',那么你的问题是什么?请描述一下你对这个问题的看法。哦,上帝,我错误地否决了这个问题,如果你编辑了答案,我可以在它为我解锁后再投票!