Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Parse file from a network path..

Hi Experts,

I have a java program using which I am trying to parse an XML file which is located on a network path.

Using either the full network path like

\\\\servername\\dir\\filename.ext

or create a mapped directory like U: mapped to

servername
dir1 and use the path as

U:\\filename.ext

the program returns error java.io.FileNotFoundException:

How do I read this file from network

mPath = "\\\\<servername>\\dir1\\filename.ext"
Document doc = db.parse(mPath);

I am running my SAPJ2EE on 7.0 EHP1 SPS03.

Thanks in Advance !!

Former Member
Not what you were looking for? View more on this topic or Ask a question