其程序如下: class RunThread{ PRocess t public void run(){ try{ t = java.lang.Runtime.getRuntime().exec("c://masm.exe"); }catch(java.io.IOException e ) { System.out.println(e); } } } /************************************************/ class RunExeNative{ public static void main(String args[]){ RunThread RT = new RunThread(); RT.run(); } } 下面是JNI + C 的本地化的实现方法: 写一个:CallExeNative.h 步骤如下: step one : /**** CallExeNative.java ****/ 编写CallExeNative.java文件 import java.lang.*; class CallExeNative{ public native static void CEN(); static { System.loadLibrary("CallExeNative"); } } 在命令行里用: javac CallExeNative.java javah CallExeNative 然后你就多了一个 :CallExeNative.h 它的文件如下: /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class CallExeNative */