Linking to files outside a jar

Hey all, this is the problem:

I have a jar called, lets say, Test.jar that contains a class TestClass.jar.

TestClass references a properties file where it gets information about where to find required resources etc.

Test.jar is in a directory C:\Java\jars\Test.jar but the properties file I wish to reference is at C:\ level.

So the question is how do I reference this relative to my Test.jar.

I've tried "../../" and "..\\..\\" but it aint working.

Have also tried referencing it according to what would happen if the jar was expanded, but still no luck.

Any and all help would be much appreciated.

[649 byte] By [mossya] at [2007-11-27 8:31:03]
# 1
Use an absolute path because you have no idea where your JAR will be. Also, relative paths to FS root certainly won't work with getResource() since that only deals with the classpath.
CeciNEstPasUnProgrammeura at 2007-7-12 20:26:22 > top of Java-index,Java Essentials,Java Programming...
# 2
hi Ceci,the problem is, this is gonna be moving soon so I dont want to be changing a different paths.On the plus side, it will be deployed as a war, so everything should stay in the same position relative to the jar.Any ideas now you know the problem better?
mossya at 2007-7-12 20:26:22 > top of Java-index,Java Essentials,Java Programming...