package untitled1; import java.awt. * ; import javax.swing.JPanel; public class Bean1 ... { public static void run() ...{ Runtime rt = Runtime.getRuntime(); Process p = null; try ...{ p = rt.exec("F:/Net/组织机构/电子政务数据交换/ConvertData/ConvertData/bin/Debug/ConvertData.exe 20071129012"); p.waitFor();//等待完成 System.out.println("ok"); } catch (Exception e) ...{ System.out.println("Error exec ConvertData.exe"); } }} jsp调用 <% ... @ page contentType="text/html; charset=GB18030" %> < html > < head > < title > jsp1 </ title > </ head > < body bgcolor ="#ffffff" > < h1 > < img src ="on.gif" width ="28" height ="27" >< img src ="on.gif" width ="28" height ="27" >< img src ="on.gif" width ="28" height ="27" > 正在执行,请稍候! <% ... untitled1.Bean1.run(); %> </ h1 > </ body > </ html >