#102 java.io.IOException: Access is denied

General (55)

tools/launch4jc.exe outputs:

launch4j: Compiling resources
launch4j: Linking
launch4j: Wrapping
launch4j: Access is denied
launch4j: java.io.IOException: Access is denied

Windows Vista 64/bit


  • Andreas Ziermann

    the output file for ldCmd.addExe("ld") is not ready to append another jar file

    solution: create a stub first and then concatenate

  • Andreas Ziermann

    • priority: 5 --> 6
  • Andreas Ziermann

    • assigned_to: nobody --> grzegok
  • Andreas Ziermann

    build icon blue - shouldnt be in 'disabled' shape

  • Andreas Ziermann

    Patch IOException

  • Grzegorz Kowal

    Grzegorz Kowal - 2012-03-14

    I also use Vista 64/bit, I'm wondering why this hasn't happened before.

  • Andreas Ziermann

    that problem could be caused by firewall or virus scanner, which keep the file locked for some time after creation.

    bad style:
    a) to create an object with one tool and b) modify the same object with another tool. Usually it calls for a kind of synchronization, especially when the actions between a) and b) are out of our control.

    malicious behavior:
    an executable should never be patched or modified after creation - usually only viruses do that.

    probably another solution would be: create the stub in the destination folder, append and
    then rename. The proposed solution is more robust. It will not change the output of 'ld' it only requires read permission.

  • Grzegorz Kowal

    Grzegorz Kowal - 2012-04-01
    • status: open --> open-fixed
  • Grzegorz Kowal

    Grzegorz Kowal - 2012-04-01
    • status: open-fixed --> closed-fixed

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks