jlink output re-create parameter

Chris Bensen chris.bensen at oracle.com
Tue Apr 11 15:12:15 UTC 2017

Early on jlink when provided a non empty directory jlink would fail. That has since been fixed, at least for hidden files such as .DS_Store files.


> On Apr 10, 2017, at 1:35 PM, Rahman USTA <rahman.usta.88 at gmail.com> wrote:
> I got it, thank you for the explanation.
> 2017-04-10 23:31 GMT+03:00 Alan Bateman <Alan.Bateman at oracle.com>:
>> On 10/04/2017 20:35, Rahman USTA wrote:
>> When using the jlink command if there is a created directory, jlink gives
>>> "Error: directory already exists: <path>" output. I remember it was
>>> overwriting the files in earlier releases. I think there could be a -f
>>> parameter to force overwriting or recreating the output.
>>> I don't recall it every overriding as that would be problematic if the
>> existing run-time image is in use. If jlink were to blow away the existing
>> image then it might cause existing VMs to SIGBUS. On Windows then it won't
>> be able to remove all files. Moving the directory to a .bak directory has
>> also been looked at but it has issues too.
>> -Alan
> -- 
> Rahman USTA
> Istanbul JUG
> https://github.com/rahmanusta

More information about the jigsaw-dev mailing list