无法使用launch4j重命名进程/图像名称 [英] not able to rename process/image name using launch4j

查看:136
本文介绍了无法使用launch4j重命名进程/图像名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Launch4j重命名我的Java进程以进行唯一标识。我已在所需的xml文件中将节点customProcName设置为true。但我仍然在Windows任务管理器中将javaw.exe作为进程/映像名称。下面是我用来启动应用程序的xml代码。请建议

I am using the Launch4j to rename my Java process for unique identification. I have set the node customProcName to true in the required xml file. But I am still getting javaw.exe as the process/Image name in the windows task manager. Below is my xml code which I am using to launch the application. Please suggest

    <?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文件。当我保存&从launch4j向导创建一个新的构建,xml文件被覆盖。不知道如何从launch4j向导设置customProcName。

The problem is that I am manually setting the true into the xml file. And when I save & create a new build from launch4j wizard, the xml file gets overridden. Not sure how to set the customProcName from launch4j wizard.

推荐答案

似乎已经删除了对customProcName的支持。

It seems that support for customProcName was dropped.

请参阅: http://sourceforge.net/p / launch4j / bugs / 95 /

这篇关于无法使用launch4j重命名进程/图像名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆