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) { }