Posted on 2006-06-27 14:13
天空蒼茫 閱讀(513)
評論(3) 編輯 收藏 所屬分類:
jsp學習
我做報表的時間,發現JSP中路徑總是出問題。
總是不明白,用絕對路徑和相對路徑都找不到這個
文件確實存在,而且路徑也是正確的,但是他總是提示:
Class not found when loading object from file : D:\Java\tomcat5.5\webapps\personjob\report\yefirst.jasper
代碼:
File reportFile =new File(application.getRealPath("/report/yefirst.jasper"));
求高手指點以下