[Eclipse问题]A class file was not written. The project may be inconsistent
来源:互联网 发布:淘宝卖家量子监控 编辑:程序博客网 时间:2024/05/30 02:23
在学习过程中,有时在编写Java的类时,会遇到: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).
所以在遇到类似问题时要重新查看一下自己的类名是否发生了冲突,如果冲突,将类名改为合适的再编译一下就可通过了。
学习之原文【http://blog.csdn.net/zhtao0416/article/details/4256217】
1 0
- [Eclipse问题]A class file was not written. The project may be inconsistent
- A class file was not written. The project may be inconsistent
- 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 projec
- 菜鸟解决方法 A class file was not written. The project may be inconsisten
- A class file was not written. Eclipse+Java
- Eclipse环境下a class file was not written问题的解决办法
- A class file was not written.
- A class file was not written.
- A class file was not written解决方法
- A class file not written.
- ERROR:A class was not written.
- Eclipse错误提示:The project was not built since its build path is incomplete. Cannot find the class file
- 解决The project was not built since its build path is incomplete. Cannot find the class file的问题
- The project 'FeiYueXueTang_Android' may be using a version of Gradle that does not contain the metho
- error:Gradle DSL method not found: 'compile()' The project 'MiarrayAdapter' may be using a version
- eclipse c++ 问题Launch failed,Binary not found和A program file was not specified in the launch configur
- 解决linux下Eclipse环境中A program file was not specified in the launch configuration.的问题
- HTML5 APP----DCloud产品分析及介绍
- mapreduce程序加队列两种方式
- iphone序列号的意义
- WordPress删除没用的meta
- 一个礼盒、一个橙子、两本书、一张照片
- [Eclipse问题]A class file was not written. The project may be inconsistent
- struts.xml加载失败的问题
- C++中vector的用法实例解析
- 编写DLL所学所思(1)
- 学习笔记--树链剖分
- PyLucene学习之一
- php析构函数的用法
- Reverse Half LinkedList
- 关于crtmpserver编译运行及源码修改