I Believe the Orion directory is the root for File access.
Or at least it was for me as I started the server up from there.

Hope this helps.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Min-Hua Luo
Sent: 15 February 2002 03:33
To: Orion-Interest
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

Reply via email to