A class file not written.

来源:互联网 发布:如何用阿里云os系统 编辑:程序博客网 时间:2024/05/20 01:37

在命名时直接命名为Con于是Error接出现了如下:

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

     千辛万苦的搜索到了问题的原因 现转贴如下:


  下面是其他的一些保留字,在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).

0 0
原创粉丝点击