eclipse中错误显示:The project was not built due to "Could not read file: E:\gsms_Log.LDF." 请问如何解决?

yuhfei 2008-04-30 07:33:32
我在运行程序时eclipse突然中止了,重新打开运行程序后发现以前所有的警告都消失了,只有一个错误显示是:The project was not built due to "Could not read file: E:\GSMS\sqldb\gsms_Log.LDF.". Fix the problem, then try refreshing this project and building it since it may be inconsistent.
在这之前程序能正常运行,数据库的文件也都没有更改过,为什么会出现这个错误呀?有什么办法可以解决吗?
请各位高手出手相助呀!傻丫头在此谢过了!
...全文
10776 13 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
lvcsd3mc 2012-06-13
  • 打赏
  • 举报
回复
顶楼上,哈哈。
SUK_flower 2012-05-17
  • 打赏
  • 举报
回复 1
点中错误,右键删除就可以了,很简单吼吼 以后也不会出这个错啦,真的,没开玩笑哦
ice012689 2012-04-12
  • 打赏
  • 举报
回复
试一下右键工程->source->clean up(finish)
zinssiee 2008-08-05
  • 打赏
  • 举报
回复
工程有错误的话用下eclipse的 project->clean
不过这个貌似不能解决根本问题
还是看看代码
就像乱舞春秋说的:
A common cause of failure to delete (on Windows) is when another process
has an open file handle on the resource that it was trying to delete.
wangzhen_1104 2008-07-29
  • 打赏
  • 举报
回复
把classes下的文件删了就行了
mumuchen 2008-05-03
  • 打赏
  • 举报
回复
(1)进入企业管理器,选中数据库,如GSMS(你自己的库名,用自己的数据库管理工具)
(2)所有任务->分离数据库
(3)到数据库文件的存放目录,将gsms_Log.LDF文件删除,最好拷出去
(4)企业管理器->附加数据库,选GSMS,这时日志文件这项是一个叉,不要紧继续,此时数据库就会提示你该数据库无日志是否创建一个新的,确定就是了。
(5)记得数据库重新附加后用户要重新设置一下。(有时不重新设也可以)
mumuchen 2008-05-03
  • 打赏
  • 举报
回复
(1)没错误,有waring 是正常的,用一个程序测试一下环境有没有其他掩藏故障。
(2)The project was not built due to "Could not read file: E:\GSMS\sqldb\gsms_Log.LDF."
Launch configuration SQLServerDriver references non-existing project gsms. 数据库驱动包检查一下,工程是否加载了并正确指向了“E:\GSMS\sqldb\gsms_Log.LDF”文件
(3)gsms_Log.LDF文件确定没问题
(4)gsms_Log.LDF权限有没问题
(5)问题的关键在:“E:\GSMS\sqldb\gsms_Log.LDF”
(6)将Log.LDF备份出来(copy到其他地方),然后删除Log.LDF日志文件,试试,最好redo日志。



AwL_1124 2008-05-02
  • 打赏
  • 举报
回复
关注··
yuhfei 2008-05-01
  • 打赏
  • 举报
回复

重新编译了, 内存也用魔法兔子清理了.
又重新建了项目,但不管旧的新的这个错误还是存在.
这个错误产生之前除了有些warnings外没有任何error.
本人才疏学浅真不知该如何解决了.
请各位高手再多多指教呀!
error
The project was not built due to "Could not read file: E:\GSMS\sqldb\gsms_Log.LDF."
Launch configuration SQLServerDriver references non-existing project gsms.
bluecll 2008-04-30
  • 打赏
  • 举报
回复
The error log might have more clues about what the problem is.
Window > Show View > Other > PDE Runtime > Error Log.
A common cause of failure to delete (on Windows) is when another process
has an open file handle on the resource that it was trying to delete.
bluecll 2008-04-30
  • 打赏
  • 举报
回复
The error log might have more clues about what the problem is. Window > Show View > Other > PDE Runtime > Error Log. A common cause of failure to delete (on Windows) is when another process has an open file handle on the resource that it was trying to delete.
yuhfei 2008-04-30
  • 打赏
  • 举报
回复

谢谢木桶阳光!
mumuchen 2008-04-30
  • 打赏
  • 举报
回复

1.删除已编译了的所有classes,刷新工程,重新编译。
2.计算机重新清理一下内存,要排除内存泄露和系统有毒等原因。
3.数据库看文件看没有其它不正确设置……不明原因的破坏了数据库文件。

58,452

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧