Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to see networked drive on Windows 10 PC using Java Open Dialog in IDE but see it outside of IDE

Why am I unable to see networked drive on Windows 10 PC with Java Open Dialog. I have noticed a problem when running my Java application from IDE, the Open Dialog does not show my NAS (NetGear ReadyDuo mounted on Z:drive). Yet when I run the application outside of the IDE on the same machine using the same JVM it is okay.

In both cases I'm using Java 1.8.0_72 25.72-b15 64bit on Windows 10 10.0 amd64. I'm sure I didn't used to have this issue but don't know when it started occurring. Its not such a big issue for me if it doesn't show in the IDE because of the IDE, but I'm concerned the IDE may be irrelevant and that potential customers are also seeing this behaviour.

Screenshots below show what I see in the two circumstances

Shows networked drive Doesn't show networked drive

like image 266
Paul Taylor Avatar asked Dec 18 '16 14:12

Paul Taylor


1 Answers

I have encountered this behaviour in other softwares, where the cause was, that the drive was not mapped persistent.

What i did to solve it: Map your Network Drive with the Windows Explorer GUI and mark "always connect".

or in cmd.exe (please try above 1st!):

net use z: \nas\media /user:usr pass /persistent:yes

Kind regards.

like image 162
simon binz Avatar answered Sep 27 '22 20:09

simon binz