• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cannot open network directory

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I have 2 PCs on local network. Both Windows 7, both have the same user to log in. In one PC there is shared folder.
Privileges are set for mentioned user for reading. In second PC I have this folder mapped as network drive (letter X) and
I can read its contents without any problems (for example via total commander).

Problem is in java. When in my code (debugged in JDeveloper) I construct new File(directory) and call
method exists() or isDirectory() or canRead() , they all return false.

That's strange, I recently reinstalled whole windows (on the PC where java code is run).
Before that I didn't have any such problems. Did I forgot something to setup ? Thanks.

 
Jiri Nejedly
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found out this - if I try open dir with drive letter such as
X:/
, it doesn't work.
But this is ok
//<server>/<directory>

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic