看板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﹏﹏
Ω