Ask questionsAccessDeniedException when trying to update jar

Let me start by saying that I have a successful implementation of a bootstrap, client.bootstrap and client application that can update itself and did so several times. So I have bootstrap application located in folder bootstrap that updates the client.bootstrap application located in folder client.bootstrap that updates the client located in folder client

Now I am trying to solve the last problem: updating the bootstrap. So, the client.boostrap will now not only try to update the client, but also the bootstrap. I get AccessDeniedException when it tries to overwrite the booststrap.jar. I checked and there is no processes locking the file, so it must be a restriction in the virtual machine.

All 3 applications are running in separate processes, as I always start a new java virtual machine.

Question: Have you implemented any kind of access restriction within the update4j library that could cause this exception? I am a bit lost at the moment.


Answer questions kunterbunt13

I am already starting ever process separately and stopping the pervious process. I also checked with process Explorer if there is a processes locking the jar file, but it is not locked. But from your answer I can deduct, that you are also not preventing access in any part of the library. So, will need to keep looking for other possible reasons.


Related questions

No questions were found.
Github User Rank List