From: "Jason Smith" <[EMAIL PROTECTED]>
> I am assuming you are talking about a java.util.Property file here.  If
the
> class that wants to access the property file is bundled within a jar, you
> should try using the Class.getResource(String name) method.  Just remember
> if you put the properties in the root of the jar you need to specify the
> name you pass into getResource as "/<whatever.properties>".
>
> Sun has an article entitled "Accessing Resources in a Location-Independent
> Manner" you might want to check out.
> http://java.sun.com/j2se/1.3/docs/guide/resources/resources.html
>
> jason
>

Thanks, but part of the problem is that it is a closed source jar package i
am dealing with here.
And it's not nice to be forced to add that properties file to the jar file
everytime i need to change it..
I'll read the spec.

Magnus

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Programmer/Networker [|] Magnus Naeslund
 PGP Key: http://www.genline.nu/mag_pgp.txt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



Reply via email to