Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
G:\Documents and Settings\rss2008>cd %BLOGAPPS%\java\ch05\dist\parsers
G:\Documents and Settings\rss2008>e:
E:\blogapps-examples-1.0.4\java\ch05\dist\parsers>run com.manning.blogapps.chapt
er05.ParseRSS10 example-rss10.xml
Exception in thread "main" java.io.FileNotFoundException: example-rss10.xml (系统找不到指定的文件。)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.manning.blogapps.chapter05.ParseRSS10.<init>(ParseRSS10.java:18)
at com.manning.blogapps.chapter05.ParseRSS10.main(ParseRSS10.java:15)
解决办法:给出‘example-rss10.xml’的地址:%BLOGAPPS%\testdata\rss_1.0.xml 即可。
如:run com.manning.blogapps.chapter05.ParseRSS10 %BLOGAPPS%\testdata\rss_1.0.xml