菜鸟解决方法 A class file was not written. The project may be inconsisten
2016-08-16 21:42
651 查看
在Java学习中,有一次创建一个类,出现了如下错误:
A class file was not written. The project may be inconsistent, if so try refreshing this project and building it 。
百度翻译如下:
一个类文件没有写入。该项目可能不一致,那么尝试刷新这个项目和建设genericdemo02。
从字面上理解,我新建了一个包,新建了一个类,还是有问题,终于在网上找到了网友们的解说。
原因如下:
由于我使用的类名是系统中的一些保留字,在Windows下面都不能创建。con是操作系统保留的一个设备名字,还有很多设备名都不能拿来用,并且不分大小写。例如Con,con,CON
都不可以!
如下:
CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6,COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4,
LPT5, LPT6, LPT7, LPT8, andLPT9. Also avoid these names followed by an extension (for example,NUL.tx7).
A class file was not written. The project may be inconsistent, if so try refreshing this project and building it 。
百度翻译如下:
一个类文件没有写入。该项目可能不一致,那么尝试刷新这个项目和建设genericdemo02。
从字面上理解,我新建了一个包,新建了一个类,还是有问题,终于在网上找到了网友们的解说。
原因如下:
由于我使用的类名是系统中的一些保留字,在Windows下面都不能创建。con是操作系统保留的一个设备名字,还有很多设备名都不能拿来用,并且不分大小写。例如Con,con,CON
都不可以!
如下:
CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6,COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4,
LPT5, LPT6, LPT7, LPT8, andLPT9. Also avoid these names followed by an extension (for example,NUL.tx7).
相关文章推荐
- 编译错误:A class file was not written. The project may be inconsistent, if so try refreshing this projec
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it. eclipse提示错误
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it
- A class file was not written. The project may be inconsistent, if so try refreshing this project and
- A class file was not written. The project may be inconsistent, if so try refreshing this project and building it. eclipse提示错误
- A class file was not written. The project may be inconsistent
- [Eclipse问题]A class file was not written. The project may be inconsistent
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- 普通用户开通sudo权限:xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- 普通用户开通sudo权限:xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- Zox's code life 人生就是不停的战斗! xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- linux系统使用sudo命令报xxx is not in the sudoers file.This incident will be reported.的解决方法
- Linux 'XXXXXX' "is not in the sudoers file. This incident will be reported" 解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- xxx(wsh) is not in the sudoers file.This incident will be reported.的解决方法