※ 引述《PsMonkey.bbs@ptt.cc (痞子軍團團長)》之銘言:
> 這... 感覺起來程式碼不是你自己寫的
> 當然,我不確定那行程式會不會導致網頁關閉
> (咪的,我壓根不想寫 JApplet)
> 不過,在那裡,我的確聞到一些怪味道... [茶]
> : java--
> : public void init() {
> : if (filename == null) {
> : try {
> : file1=this.getParameter("file1");
> : file2=this.getParameter("file2");
> : file3=this.getParameter("file3");
> : file4=this.getParameter("file4");
> : filename1 = new URL(getCodeBase()+"Component/1/"+file1);
> : filename2 = new URL(getCodeBase()+"Component/2/"+file2);
> : filename3 = new URL(getCodeBase()+"Component/3/"+file3);
> : filename4 = new URL(getCodeBase()+"Component/4/"+file4);
> : }
> : catch (MalformedURLException e) {
> : System.err.println(e);
> : System.exit(1);
> ^^^^^^^^^^^^^^^
> : }
> : }
包在catch裡沒有runtime exception應該是不會被執行到吧..
當然.. 建議可以把JRE的Java Console(開啟主控台)打開..
看看有沒有吐什麼Exception Message出來吧..
--
● ˙ ˙ ◢▇◣ ◢▇◣ ▇ ▇ █▇◣ █▇◣ █▇◣ ◢▇◣ █▇▉ /
˙ ╲ █ █ █ █ █ ▉ █ ▉ █▆ █▆▉ ▉▉▉ ★
◢ ★˙ ◥█◤ ◥█◤ ◥█◤ ██◤ █◥▆ █▆◤ █ ▉ ▉▉▉˙ ◣
CDBBS 中正築夢園BBS站 歡迎蒞臨參觀 cd.twbbs.org (140.123.20.230)
http://cd.twbbs.org◥ * Author: lazyf ★ From: 220.143.215.153 ◤
討論串 (同標題文章)