首页 > 编程语言 > 详细

java学习随笔之异常A class file was not written.

时间:2014-11-26 15:39:32      阅读:343      评论:0      收藏:0      [点我收藏+]

今天写一个程序,出现异常

java.lang.NoClassDefFoundError

 

然后错误提示是

A class file was not written. The project may be inconsistent, if so try refreshing this project and building it

 

上网搜了下,有说是我workspace满了,但不至于啊,我电脑虽然渣,这点内存可能还是有的啊。最后答案很搞笑:

下面是其他的一些保留字,在Windows下面都不能创建。注重,不许分大小写。Con,con,CON 都不可以! 

con是操作系统保留的一个设备名字,还有很多设备名都不能拿来用,如下: 

The following reserved device names cannot be used as the name of a file: CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names followed by an extension (for example, NUL.tx7).

java学习随笔之异常A class file was not written.

原文:http://www.cnblogs.com/ShawDd/p/4123052.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!