Java Exe不';使用Launch4j时无法创建

Java Exe不';使用Launch4j时无法创建,java,executable,launch4j,Java,Executable,Launch4j,我使用以下代码使用Launch4j和ant脚本创建了一个exe文件。已创建HelloWorld.jar,但未创建HelloWorld.exe。有什么建议吗 我的ant Launch4j是 <launch4jConfig> <dontWrapJar>true</dontWrapJar> <headerType>gui</headerType> <jar></jar> <outf

我使用以下代码使用Launch4j和ant脚本创建了一个exe文件。已创建HelloWorld.jar,但未创建HelloWorld.exe。有什么建议吗


我的ant Launch4j是

<launch4jConfig>
  <dontWrapJar>true</dontWrapJar>
  <headerType>gui</headerType>
  <jar></jar>
  <outfile>install\HelloWorld.exe</outfile>
  <errTitle></errTitle>
  <cmdLine></cmdLine>
  <chdir>.</chdir>
  <priority>normal</priority>
  <downloadUrl>http://java.com/download</downloadUrl>
  <supportUrl></supportUrl>
  <customProcName>true</customProcName>
  <stayAlive>false</stayAlive>
  <manifest></manifest>
  <icon></icon>
  <classPath>
    <mainClass>HelloWorld</mainClass>
    <cp>lib/HelloWorld.jar</cp>
  </classPath>
  <jre>
    <path>jre6</path>
    <minVersion></minVersion>
    <maxVersion></maxVersion>
    <jdkPreference>preferJre</jdkPreference>
  </jre>
  <messages>
    <startupErr>An error occurred while starting the application.</startupErr>
    <bundledJreErr>This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted.</bundledJreErr>
    <jreVersionErr>This application requires a Java Runtime Environment</jreVersionErr>
    <launcherErr>The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.</launcherErr>
    <instanceAlreadyExistsMsg>An application instance is already running.</instanceAlreadyExistsMsg>
  </messages>
</launch4jConfig>

真的
桂
安装\HelloWorld.exe
.
正常的
http://java.com/download
真的
假的
你好世界
lib/HelloWorld.jar
jre6
首选
启动应用程序时出错。
此应用程序配置为使用捆绑的Java运行时环境,但运行时丢失或损坏。
此应用程序需要Java运行时环境
注册表引用了不存在的Java运行时环境安装,或者运行时已损坏。
应用程序实例已在运行。
谢谢。我添加了HelloWorld.jar。但它仍然不会生成exe文件
<launch4jConfig>
  <dontWrapJar>true</dontWrapJar>
  <headerType>gui</headerType>
  <jar></jar>
  <outfile>install\HelloWorld.exe</outfile>
  <errTitle></errTitle>
  <cmdLine></cmdLine>
  <chdir>.</chdir>
  <priority>normal</priority>
  <downloadUrl>http://java.com/download</downloadUrl>
  <supportUrl></supportUrl>
  <customProcName>true</customProcName>
  <stayAlive>false</stayAlive>
  <manifest></manifest>
  <icon></icon>
  <classPath>
    <mainClass>HelloWorld</mainClass>
    <cp>lib/HelloWorld.jar</cp>
  </classPath>
  <jre>
    <path>jre6</path>
    <minVersion></minVersion>
    <maxVersion></maxVersion>
    <jdkPreference>preferJre</jdkPreference>
  </jre>
  <messages>
    <startupErr>An error occurred while starting the application.</startupErr>
    <bundledJreErr>This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted.</bundledJreErr>
    <jreVersionErr>This application requires a Java Runtime Environment</jreVersionErr>
    <launcherErr>The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.</launcherErr>
    <instanceAlreadyExistsMsg>An application instance is already running.</instanceAlreadyExistsMsg>
  </messages>
</launch4jConfig>