public static void main(String args[]) throws IOException
{
Process p = Runtime.getRuntime().exec("java E:/workspace/JNIProgram/src/JNIProgram.class");
}
所以我有這樣的代碼,我試圖運行JNIProgram.class文件但該計劃被終止瞬間沒有做的工作(這是創建一個新的txt文件,並寫入)運行的類文件作爲獨立的進程從Java代碼
所以我在做什麼錯
同時檢查[runtime.exec info。頁面(http://stackoverflow.com/tags/runtime.exec/info)。 – 2012-07-23 14:13:06