看板java
标 题[问题] 为何eclipse能正常执行,而搬到Tomcat上却不会执行
发信站神秘之旅 (Sat Jan 20 07:32:46 2007)
转信站ptt!ctu-reader!ctu-gate!news.nctu!news.ncu!news.cycu!news.ice.cycu!BBS
String location = "3des/";
out.write(text,location+"RW/input.txt");
Process p = Runtime.getRuntime().exec(location+"RW/run.bat");
String decode = in.getString(location+"RW/output.txt");
这段程式码在Eclipse上可正常执行,会产生两个档,input.txt跟output.txt
但我搬到Tomcat上执行,有产生input.txt,但没output.txt
--
╭┬╮
│
┴│╭─﹏﹏──────────────
Web bbs http://bbs.ice.cycu.edu.tw
└┬┘│
中原资工神秘之旅 Post by ingmaxwell │
╰﹏╯
From:61-224-81-251.dynamic.hinet.n ╰﹏﹏
bbs.ice.cycu.edu.tw﹏﹏
Ω