1 45 package org.openejb.test; 46 47 import java.io.File ; 48 49 import org.openejb.loader.SystemInstance; 50 51 52 55 public class Main{ 56 57 public static void main (String args[]) { 58 try{ 59 File directory = SystemInstance.get().getHome().getDirectory("lib"); 60 SystemInstance.get().getClassPath().addJarsToPath(directory); 61 File directory1 = SystemInstance.get().getHome().getDirectory("dist"); 62 SystemInstance.get().getClassPath().addJarsToPath(directory1); 63 } catch (Exception e){ 64 e.printStackTrace(); 65 } 66 67 TestRunner.main( args ); 68 } 69 70 } 71 | Popular Tags |