Reading the property file at Runtime of project

hii have problem with Reading the property file at Runtime of projectits work with compile time using resourseBundle please help Shrinath
[172 byte] By [Shrinatha] at [2007-10-2 14:19:07]
# 1

Can you explain your problem? And post code.

The following works just fine:public static void main(String[] args)

{

...

Properties props = new Properties();

InputStream in = ExampleHost.class.getResourceAsStream("/example.properties");

props.load(in);

in.close();

String issuerName = props.getProperty("issuerName");

String serviceName = props.getProperty("serviceName");

new ExampleHost(issuerName, serviceName);

}

NB: I am confused as to why you posted to the security board?

_bensmytha at 2007-7-13 12:36:27 > top of Java-index,Security,Other Security APIs, Tools, and Issues...