如题,我想用java调用我建立的vc++工程编译连接生成的debug或是release目录下的那个exe,可是不能运行,而我用java调用windows自带的一些exe都可以运行,哪位高手给予指点?我的程序如下,目录存储也如程序所示:---------------------------------------------------------
import java.util.*;public class Test {
/**
 * @param args
 */
public static void main(String[] args) {
Runtime rn = Runtime.getRuntime();
Process p = null;
try {
String str = "\"C:\\HIT_IR_Lab_LTP_Sharing_Package_Full_v" +
"2.0\\HIT_IR_Lab_LTP_Programming_Package_v2.0\\LTP_" +
"DLL_Library_v2.0\\cplusplus\\test_vs2008\\test_ltp_" +
"dll.exe\"";
String str2 = "\"c:\\WINDOWS\\explorer.exe\"";
p = rn.exec(str);
} catch (Exception e) {
System.out.println("Error to run the exe");
}
}
}