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
XML and Related Technologies
XML FilePath in Unix
Joined: Sep 28, 2003
Jun 03, 2006 11:32:00
I am using this code and trying to run on unix environment.
lDocBuilderFactory = DocumentBuilderFactory.newInstance();
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 ?
Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
Joined: Oct 14, 2005
Jun 04, 2006 13:54:00
That looks like an absolute Unix path to me. What's the problem?
rocket mass heater
subject: XML FilePath in Unix
how to exit emacs mode
Connecting to Unix via Windows
package,classpath and servlet
How to Add portlet in liferay with Eclipse setup
Classpath Issue - but JAR file is in the classpath
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014