CmdMain

public class CmdMain
{
	public static void main(String[] args) throws Exception 
	{
		Xcopy xcopy = new Xcopy(new File("D:\\workspace\\ws4\\jxl"));
		if(xcopy.find("java") || xcopy.find("properties"))
		{
			xcopy.xcopy("d:\\new\\jxl");
		}
		Runtime runtime = Runtime.getRuntime();
		runtime.exec("javac *.java -d .",
				new String[] {"classpath=D:\\workspace\\ws4\\jxl\\lib\\jxl.jar;D:\\workspace\\ws4\\jxl\\lib\\log4j-1.2.14.jar;."},
				new File("d:\\new\\jxl\\")).waitFor();
		runtime.exec("cmd /c start java com.vanceinfo.syn.jxl.main.Main",
				new String[] {"classpath=D:\\workspace\\ws4\\jxl\\lib\\jxl.jar;D:\\workspace\\ws4\\jxl\\lib\\log4j-1.2.14.jar;."},
				new File("d:\\new\\jxl\\"));
	}
}

 

你可能感兴趣的:(java,C++,c,log4j,C#)