home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / rmi / GetORBPropertiesFileAction.class (.txt) next >
Encoding:
Java Class File  |  1979-12-31  |  929 b   |  31 lines

  1. package javax.rmi;
  2.  
  3. import java.io.File;
  4. import java.io.FileInputStream;
  5. import java.security.PrivilegedAction;
  6. import java.util.Properties;
  7.  
  8. class GetORBPropertiesFileAction implements PrivilegedAction {
  9.    public GetORBPropertiesFileAction() {
  10.    }
  11.  
  12.    public Object run() {
  13.       Properties var1 = new Properties();
  14.  
  15.       try {
  16.          String var2 = System.getProperty("java.home");
  17.          File var3 = new File(var2 + File.separator + "lib" + File.separator + "orb.properties");
  18.          if (!var3.exists()) {
  19.             return null;
  20.          } else {
  21.             FileInputStream var4 = new FileInputStream(var3);
  22.             var1.load(var4);
  23.             var4.close();
  24.             return var1;
  25.          }
  26.       } catch (Exception var5) {
  27.          return null;
  28.       }
  29.    }
  30. }
  31.