java.nio.file Files.createDirectory on windows remote mount share -


i seem not able let java create directories on windows mount shares (like \myshare\directory\subdir).

import java.io.ioexception; import java.nio.file.files; import java.nio.file.path; import java.nio.file.paths; import java.util.logging.*;  public class main {     public static void main(string arg[])     {         path target = paths.get("\\\\disk\\remote\\directopo");         try         {             files.createdirectory(target);         } catch (ioexception ex)         {             logger.getlogger(main.class.getname()).log(level.severe, null, ex);         }     } } 

i

severe: null java.nio.file.accessdeniedexception: \\disk\remote\directopo 

however can access share without problem (i'm administrator on machine , administrators can create directories on mount share). help?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -