首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

eclipse,class资料没有被写入

2013-04-02 
eclipse,class文件没有被写入eclipse 编译出错,问题如下:A class file was not written. The project may

eclipse,class文件没有被写入
eclipse 编译出错,问题如下:
A class file was not written. The project may be inconsistent, if so try refreshing this project and building it

class文件没有被写入,然后我clean了下,还是不行。
网上说是因为磁盘空间满了,解决方法也是clean下。

查资料了解到原来原因是这个:

因为我使用了类名: con
con是操作系统保留的一个设备名字,不可以使用该类名..
其他的比如 CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9都不可以.

热点排行