File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Unable to read Network File
Joined: Jun 16, 2006
Jun 16, 2006 05:03:00
I am facing a serious problem while reading a file thro network in my
web application.My App Server is iPlanet 6.0.I tried using weblogic and it is working fine
The following code works fine in Weblogic,but it does not work in Iplanet6.0 server.
File dir1=new File("\\\\22.214.171.124\\logs\\20060616.log");
System.out.println(" dir1.exists()-->"+ dir1.exists());
System.out.println(" dir1.exists()-->"+ dir1.getAbsolutePath());
File dir2=new File("G:\\Logs\\20060616.log");
System.out.println(" dir2.exists()-->"+ dir2.exists());
System.out.println(" dir2.exists()-->"+ dir2.getAbsolutePath());
Author and ninkuma
Joined: Jan 10, 2002
Jun 16, 2006 10:34:00
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the
JavaRanch Naming Policy
adjust your display name
to match it.
In particular, your display name must be a first
a last name separated by a space character, and must not be obviously fictitious.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Unable to read Network File
Application server unable to read shared folders in a network
Development: trouble with import and classpath
mkdir and mkdirs
Moving files in java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014