Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

access windows network drive

Thread view: 
Aljosa Mohorovic - 10 Sep 2007 14:46 GMT
i have a windows network drive mapped at "Y:" and i'm trying to access
folder "Y:\data\test" from web application (spring app).
if i use local disk ( "C:\data\test" ) everything works fine.

how can i work with/access folder on windows network drive, what are
common problems and solutions?

please post any tips, docs and similar info.

Aljosa
Roedy Green - 10 Sep 2007 19:44 GMT
On Mon, 10 Sep 2007 13:46:07 -0000, Aljosa Mohorovic
<aljosa.mohorovic@gmail.com> wrote, quoted or indirectly quoted
someone who said :

>i have a windows network drive mapped at "Y:" and i'm trying to access
>folder "Y:\data\test" from web application (spring app).
>if i use local disk ( "C:\data\test" ) everything works fine.

try using / instead of \, or else remember to double every \.

at the command line verify :

attrib Y:\data\test

try copying a file to Y:\data\test and copying it back to make sure
you have full access.

Experiment with subst J: C:\

and see if you can access J:\data\test

I have never used a network drive in a Java app. I don't even know if
they are supposed to work. Logically they should since you access them
with the same OS  C API as local drives.

Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Sabine Dinis Blochberger - 12 Sep 2007 10:00 GMT
> i have a windows network drive mapped at "Y:" and i'm trying to access
> folder "Y:\data\test" from web application (spring app).
[quoted text clipped - 6 lines]
>
> Aljosa

You don't say what (if any) errors/exceptions you get.

Could be permissions (have a look at SecurityManager[1]) or the LAN is
down. Could also be that someone else is working o the file and has a
lock.

[1]
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/SecurityManager.html
Signature

Sabine Dinis Blochberger

Op3racional
www.op3racional.eu



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.