if your "file.ini" is in "c:\orion" try the following:
String path = "c:\orion\file.ini"; Properties props = new Properties(); props.load(new FileInputStream(path)); ----- Original Message ----- From: "Min-Hua Luo" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Friday, February 15, 2002 5:32 AM Subject: getClass().getClassLoader().getResource(fileName) problem > Hi, > > I tried to open a property file from within my > custom UserManager program, however, Orion was unable > to find my file. I just don't know where should I put > my property file so it can be located by the following > command: > > props_ = new Properties(); > try { > URL aURL = > getClass().getClassLoader().getResource(fileName); > InputStream in = (InputStream)aURL.openStream(); > props_.load(in); > > Thanks a lot. > > __________________________________________________ > Do You Yahoo!? > Got something to say? Say it better with Yahoo! Video Mail > http://mail.yahoo.com