• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML FilePath in Unix

 
Andy Smith
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using this code and trying to run on unix environment.

DocumentBuilderFactory lDocBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder lDocBuilder = lDocBuilderFactory.newDocumentBuilder();
Document lDoc = lDocBuilder.parse(new File(/cram/ext/cramprop.xml));


It throws exception...

File 'file:///cram/ext/cramprop.xml' doesn't found....

I want to have absolute path... any solution how I can do that ?
 
Paul Clapham
Sheriff
Pie
Posts: 20980
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That looks like an absolute Unix path to me. What's the problem?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic