1 7 15 16 package com.sun.corba.se.impl.util; 17 18 import java.io.File ; 19 import java.io.FileOutputStream ; 20 import java.io.PrintWriter ; 21 22 public class ORBProperties { 23 24 public static final String ORB_CLASS = 25 "org.omg.CORBA.ORBClass=com.sun.corba.se.impl.orb.ORBImpl"; 26 public static final String ORB_SINGLETON_CLASS = 27 "org.omg.CORBA.ORBSingletonClass=com.sun.corba.se.impl.orb.ORBSingleton"; 28 29 public static void main (String [] args) { 30 31 try { 32 String javaHome = System.getProperty("java.home"); 34 File propFile = new File (javaHome + File.separator 35 + "lib" + File.separator 36 + "orb.properties"); 37 38 if (propFile.exists()) 39 return; 40 41 FileOutputStream out = new FileOutputStream (propFile); 43 PrintWriter pw = new PrintWriter (out); 44 45 try { 46 pw.println(ORB_CLASS); 47 pw.println(ORB_SINGLETON_CLASS); 48 } finally { 49 pw.close(); 50 out.close(); 51 } 52 53 } catch (Exception ex) { } 54 55 } 56 } 57 | Popular Tags |