This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Unable to read Network File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Unable to read Network File" Watch "Unable to read Network File" New topic

Unable to read Network File

rocky raghu

Joined: Jun 16, 2006
Posts: 2
Hi guys,
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("\\\\\\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());

OutPut(in iPlanet):
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63042

"rocky rocky",

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 and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jQuery in Action, 3rd edition
subject: Unable to read Network File
It's not a secret anymore!