launch4j: “The process cannot access t...

Help
2012-10-09
2013-06-12
  • Anders Sewerin Johansen

    I just upgraded to Windows 7. It seems to have broken my launch4j build setup.

    Using the launch file below, I now get these errors:

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

    batchexport.exe is the file I'm trying to build. It does not exist in the dir at this point.

    Here's the build script:

    <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>
    </launch4jConfi
    

    g>

     
  • Anders Sewerin Johansen

    And the answer is (drumroll): Build on a local drive.

    It only happens on my network drive. I suspect that some synchronization daemon grabs ownership of the file halfways through the build.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks