[opencms-dev] ResourceBundle dream...

Ralf B ambiesense at gmx.de
Sun Nov 23 18:08:02 CET 2003


Hello community, 

I have a dream... A dream that I can load a property file from out of a jar
file using the ResourceBundle class. My property file (test.properties) is
situated in the res/ directory within my jar file and looks like that

login=testlogin
password=test123

I have this code and it does not run since it cannot find the file:

ResourceBundle testBundle = ResourceBundle.getBundle("res/test.properties");
String login = testBundle.getString("login");
String password = testBundle.getString("password");

Can somebody help to realise my dream?

Kind Regards,
Ralf

-- 
GMX Weihnachts-Special: Seychellen-Traumreise zu gewinnen!

Rentier entlaufen. Finden Sie Rudolph! Als Belohnung winken
tolle Preise. http://www.gmx.net/de/cgi/specialmail/

+++ GMX - die erste Adresse für Mail, Message, More! +++




More information about the opencms-dev mailing list