Today accidentally opened the project this problem is literally not hard to understand is that eclipse cannot create this control because our IDE programming interface itself is a window control, so it is possible that an error occurred while loading the code resource and could not create this window. The reported error is the exception that you reported during the eclipse creation process. So find the solution to the problem from the code itself.
There are currently three solutions known:
(1) The first, also I encountered this, is the code in the presence of//and annotation characters and comments after the annotation, which caused the load code error and can not open. The following code shows the file time variable after//, to the source location using Notepad program open, deleted//After the successful use of Eclipse open.
public class Filemetadata implements Serializable {
private static final long Serialversionuid =-7285975145054742504 L;
File time
Private Long filetime =-1;////
file fingerprint-hash value
private String filekey;
Upload ID
private String uploaderid;
File size-from client upload parameter
private long FileSize =-1;
Uploaded by
private String Uploader;
}
(2) switch workspace, that is, Siwtch workspace to other, and then back to the current workspace
(3) Right-key project build Path->configure builds path->libraries, use edit to check whether the current JDK version matches, because some of the new features used in the code, if the current JDK does not match or lower, Error parsing the code file, it still cannot be opened.