launch4j包装器启动两次

时间:2014-11-17 20:47:32

标签: java launch4j

我用launch4j包装了我的java应用程序。

当我启动启动器时,应用程序会像往常一样启动。之后5秒钟应用程序关闭并重新启动,没有任何明显的原因。

这里是配置文件:

<?xml version="1.0" encoding="UTF-8"?>
<launch4jConfig>
<dontWrapJar>true</dontWrapJar>
  <headerType>gui</headerType>
<jar>.\app\getdown-1.4.jar</jar>
  <outfile>C:\dev\repos\myproject\build\getdown\launch.exe</outfile>
<errTitle>Fehler - myproject</errTitle>
  <cmdLine>./app</cmdLine>
  <chdir></chdir>
<priority>normal</priority>
  <downloadUrl>http://java.com/download</downloadUrl>
  <supportUrl></supportUrl>
<stayAlive>false</stayAlive>
  <restartOnCrash>false</restartOnCrash>
<manifest></manifest>
  <icon>C:\dev\repos\myproject\build\getdown\app\favicon.ico</icon>
<singleInstance>
<mutexName>myproject</mutexName>
    <windowTitle>myproject</windowTitle>
</singleInstance>
  <jre>
    <path></path>
<bundledJre64Bit>false</bundledJre64Bit>
    <minVersion>1.7.0</minVersion>
<maxVersion></maxVersion>
    <jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits>
  </jre>
</launch4jConfig>

1 个答案:

答案 0 :(得分:-1)

嗯,这有点愚蠢,但就我而言,它是Avast Cyber​​something-防病毒安全环境。在正常运行之前,请确保您的应用未在类似的隔离环境中运行。

相关问题