天天看點

編譯錯誤:A class file was not written. The project may be inconsistent, if so try refreshing this projec

eclipse編輯器

出現此問題是因為我使用了類名:Com1

這是作業系統保留的一個裝置名字,不可以使用該類名,

其他的比如 

CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8,LPT9

都不可以.并且不區分大小寫。

還有可能是磁盤已滿