-1

我刚刚升级到 Win 7,现在我的 launch4j 设置不再工作了。

线索?

使用下面的启动文件,我得到这些错误:

 [exec] launch4j: Compiling resources
 [exec] launch4j: Linking
 [exec] launch4j: Wrapping
 [exec] launch4j: H:\Documents\QueryAnalyzerFaker\QueryAnalyzerFaker\.\batchexport.exe (The process cannot access the file because it is being used by another process)
 [exec] launch4j: java.io.FileNotFoundException: H:\Documents\QueryAnalyzerFaker\QueryAnalyzerFaker\.\batchexport.exe (The process cannot access the file because it is being used by another process)

这是启动配置

<launch4jConfig>
  <dontWrapJar>false</dontWrapJar>
  <headerType>console</headerType>
  <jar>.\batchexport.jar</jar>
  <outfile>.\batchexport.exe</outfile>
  <errTitle></errTitle>
  <cmdLine></cmdLine>
  <chdir></chdir>
  <priority>normal</priority>
  <downloadUrl>http://java.com/download</downloadUrl>
  <supportUrl></supportUrl>
  <customProcName>false</customProcName>
  <stayAlive>false</stayAlive>
  <manifest></manifest>
  <icon>.\1326449361_table_money.ico</icon>
  <jre>
    <path>C:\Program Files (x86)\Java\jre6</path>
    <minVersion>1.6.0</minVersion>
    <maxVersion></maxVersion>
    <jdkPreference>jreOnly</jdkPreference>
    <maxHeapSize>1024</maxHeapSize>
  </jre>
</launch4jConfig>
4

1 回答 1

0

该问题似乎是由目标驱动器(网络驱动器)的同步服务和 launch4j 之间的一些干扰引起的。

我通过在本地 c: 驱动器上构建来解决它,然后添加一个 Ant 目标以将输出复制到网络驱动器上的所需文件夹。

于 2012-10-15T12:19:05.560 回答