title: Intellij - Failed to start project in external drive: java.nio.file.AccessDeniedException
body: <p>I could run my <a href="/questions/tagged/jetty" class="post-tag" title="show questions tagged &#39;jetty&#39;" rel="tag"><img src="https://i.stack.imgur.com/Ly8wa.png" height="16" width="18" alt="" class="sponsor-tag-img">jetty</a> project up to a few days ago with <a href="/questions/tagged/intellij-idea" class="post-tag" title="show questions tagged &#39;intellij-idea&#39;" rel="tag"><img src="https://i.stack.imgur.com/2GNHb.png" height="16" width="18" alt="" class="sponsor-tag-img">intellij-idea</a>, but since yesterday, when I press <code>run</code> / <code>debug</code> I get:</p>
  
  <pre><code>java.nio.file.AccessDeniedException: D:\workspace_professional\01_clients\my_client\workspace\branch_develop
      at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
      at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
      at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
      at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
      at java.nio.file.Files.newByteChannel(Files.java:361)
      at java.nio.file.Files.newByteChannel(Files.java:407)
      at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
      at java.nio.file.Files.newInputStream(Files.java:152)
      at org.eclipse.jetty.util.resource.PathResource.getInputStream(PathResource.java:380)
      at org.eclipse.jetty.security.SpnegoLoginService.doStart(SpnegoLoginService.java:103)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
      at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
      at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
      at org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:361)
      at org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:448)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
      at org.eclipse.jetty.server.Server.start(Server.java:411)
      at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
      at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
      at org.eclipse.jetty.server.Server.doStart(Server.java:378)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      at com.container.JettyApplicationContainer.startServer(JettyApplicationContainer.java:339)
      at com.container.JettyApplicationContainer.launch(JettyApplicationContainer.java:57)
      at com.bootstrap.Bootstrap.startApplication(Bootstrap.java:201)
      at com.bootstrap.Bootstrap.start(Bootstrap.java:77)
      at org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:4241)
  </code></pre>
  
  <p>The project workspace is stored onto an external encrypted drive. </p>
  
  <hr>
  
  <p>What I have tried so far:</p>
  
  <ul>
  <li>Start <code>IntelliJ</code> as Administrator</li>
  <li>Unchecked the <code>Read-Only</code> property under <code>Properties</code> but it seems to <em>check</em> back when I reopen the <code>Properties</code> tab (both for the drive root and the folder marked in the stacktrace)</li>
  <li>Give all permissions for the entire drive to all users / groups under <code>Properties &gt; Security</code></li>
  <li>Try the replace child object permissions with entries from <code>D:\</code> (under <code>Properties &gt; Security &gt; Advanced</code> but I get the error:</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/XSjQM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XSjQM.png" alt="Error applying security info"></a></p>
  
  <hr>
  
  <p>A few threads from SO about this topic, but the solutions don't work for me:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/22988210/java-nio-file-accessdeniedexception-while-using-files-move">AccessDeniedException while using Files.move()</a></li>
  <li><a href="https://stackoverflow.com/questions/36704670/problems-with-glassfish-using-intellij-deploy-is-not-available">Problems with GlassFish using IntelliJ, deploy is not available</a></li>
  <li><a href="https://stackoverflow.com/questions/28670576/getting-java-nio-file-accessdeniedexception-when-trying-to-write-to-a-folder?noredirect=1&amp;lq=1">java.nio.file.AccessDeniedException when trying to write to a folder</a></li>
  </ul>
  
  <hr>
  
  <p>Tools used are: </p>
  
  <pre><code>IntelliJ IDEA 2018.1.4 (Community Edition)
  Build #IC-181.5087.20, built on May 17, 2018
  JRE: 1.8.0_152-release-1136-b39 amd64
  JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  Windows 10 10.0
  </code></pre>
  
  <hr>
  
  <p>Has anyone had this problem and found a solution?</p>