Relative Paths - Quick Question

I finally got everything to work with Java Web Start but now I have a minor problem with the way it handles relative paths. At one point I use:

new File(someString)

where someString is a relative path to an XML file inside the JAR. It works fine when I run the program in Eclipse but when I run it with Web Start it calculates the path relative to the location of the jnlp file (which gets stored on the desktop.

Anyone know a way around this? I've put so much effort into fixing all my other problems with Web Start that I would be greatly appreciative!

[580 byte] By [mrgordona] at [2007-11-27 2:57:26]
# 1
Nevermind. I needed to use:ClassLoader cl = this.getClass().getClassLoader();document = builder.parse(cl.getResource(location).openStream());instead!
mrgordona at 2007-7-12 3:35:58 > top of Java-index,Desktop,Deploying...