Topic: 请教编译时产生的警告信息的原因 (Warning #: 908 : check sourcepath;)

  Print this page

1.请教编译时产生的警告信息的原因 (Warning #: 908 : check sourcepath;) Copy to clipboard
Posted by: boper
Posted on: 2004-08-31 15:44

Warning #: 908 : check sourcepath; source d:\ZhangChen\bank1\src\BankHall.java cannot be found on sourcepath by appending \bankpackage\BankHall.java to each sourcepath entry

该如何更正,我猜是某个地方的环境变量设得不对。

或者解释一下它的意思

非常感谢!

2.Re:请教编译时产生的警告信息的原因 [Re: boper] Copy to clipboard
Posted by: href
Posted on: 2004-08-31 15:52

检查一下d:\ZhangChen\bank1\src\BankHall.java
看看package是不是bankpackage?
如果是的话,麻烦你把BankHall.java放到d:\ZhangChen\bank1\src\bankpackage\BankHall.java下面
否则包名和文件路径对不上。

3.Re:请教编译时产生的警告信息的原因 (Warning #: 908 : check sourcepath;) [Re: boper] Copy to clipboard
Posted by: why
Posted on: 2004-08-31 20:04

do a search on Google or your favourite search engine and you should be able to find something like:
http://www.jguru.com/faq/view.jsp?EID=334824

Answer:
You can fix this error in two ways:
o Making the sources available in the specified project source directory
o Moving the class files (.class) out of the specified project classes directory and into a library


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923