home *** CD-ROM | disk | FTP | other *** search
- package javax.rmi;
-
- import java.io.File;
- import java.io.FileInputStream;
- import java.security.PrivilegedAction;
- import java.util.Properties;
-
- class GetORBPropertiesFileAction implements PrivilegedAction {
- public GetORBPropertiesFileAction() {
- }
-
- public Object run() {
- Properties var1 = new Properties();
-
- try {
- String var2 = System.getProperty("java.home");
- File var3 = new File(var2 + File.separator + "lib" + File.separator + "orb.properties");
- if (!var3.exists()) {
- return null;
- } else {
- FileInputStream var4 = new FileInputStream(var3);
- var1.load(var4);
- var4.close();
- return var1;
- }
- } catch (Exception var5) {
- return null;
- }
- }
- }
-