看板java
标 题Re: [问题] 执行 Applet 的时候
发信站中正筑梦园 (Thu May 18 01:14:33 2006)
转信站ptt!ctu-reader!ctu-gate!news.nctu!news.ccu!reader.ccu!ccudream
※ 引述《[email protected] (痞子军团团长)》之铭言:
> 这... 感觉起来程式码不是你自己写的
> 当然,我不确定那行程式会不会导致网页关闭
> (咪的,我压根不想写 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 ◤