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?
I agree. Here's the link:
subject: XML FilePath in Unix
package,classpath and servlet
Classpath Issue - but JAR file is in the classpath
Connecting to Unix via Windows
How to Add portlet in liferay with Eclipse setup
how to exit emacs mode
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014