Eclipse Failed to create the part ' s controls address

Source: Internet
Author: User

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.




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.