java项目报错 :A class file was not written. The project may be inconsistent...

problem:

Open ecplise, I found a few items being given a sudden, the morning also used properly, I look ignorant, so many mistakes also is a kind of problem, an error message is translated class file can not be found:

1576343154801

After detailed description of the problem:

Not just in my springMVC project, even before the writing of ordinary java-web project is also a problem, said the online search has A class file was not written this error is the name of the project reserved keyword conflicts with the windows of the ... .. but I am still alive and how it might conflict, and it will find no way to rebuild what had to delete items to try.

File in question has a project called built can not delete a folder, use antivirus software will not smash directly. Checked the effect of built file, he is automatically generated used to hold the compiled class files.

1576344134797

Solve project file corruption can not be deleted is this: Right-click on the drive letter where the project - Tools - Check - repair.

Wait for the completion of the repair can be performed to delete a folder, and then re-import the project will not complain.

to sum up:

I thought the issue should be before my computer suddenly very slow, disk rotation sounds stop, and hardware problems. That forced the closure of the program caused a drive file is corrupted, so this should be related driving problems.

Reflection, wondering:

So the question again, driving the problem, it specifically refers to where the problem is yet. Have in common is that they are Dynamic web project, and they are connected to the mysql database. I have other web projects not being given, this time to exclude web project to the rest of the reason is the problem related to the database. Jsp files are also found to have an error, he is to obtain data for jsp is to obtain data by controlling the controller components (a class), and some controller class does not use the contents of the back of database operations, this time jsp error a bit strange, I very much doubt their own judgment, but I think it is very likely related to the database file is broken. Unfortunately, my project files are deleted, you can not figure out the problem and there is no difference between project-specific error of the project.

If people encounter this problem to find the problem could tell me why! ! !

Guess you like

Origin www.cnblogs.com/taoxiaoyao/p/12041755.html