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






Reply via email to