Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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?
subject: XML FilePath in Unix
Classpath Issue - but JAR file is in the classpath
How to Add portlet in liferay with Eclipse setup
Connecting to Unix via Windows
package,classpath and servlet
how to exit emacs mode
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013