FileDocCategorySizeDatePackage
ORBProperties.javaAPI DocJava SE 5 API1447Fri Aug 26 14:54:34 BST 2005com.sun.corba.se.impl.util

ORBProperties

public class ORBProperties extends Object

Fields Summary
public static final String
ORB_CLASS
public static final String
ORB_SINGLETON_CLASS
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    
          

	try {
	    // Check if orb.properties exists
	    String javaHome = System.getProperty("java.home");
	    File propFile = new File(javaHome + File.separator
				     + "lib" + File.separator
				     + "orb.properties");
	    
	    if (propFile.exists())
		return;

	    // Write properties to orb.properties
	    FileOutputStream out = new FileOutputStream(propFile);
	    PrintWriter pw = new PrintWriter(out); 

	    try {
		pw.println(ORB_CLASS);
		pw.println(ORB_SINGLETON_CLASS);
	    } finally {
		pw.close();
		out.close();
	    }

	} catch (Exception ex) { }