The recent environmental issues of Eclipse in the project have been recorded today in a unified settlement.
Question 1:
Resource is out of sync with the file system ...
Eclipse Chinese is caused by a different step. In Eclipse, the project files are added by Eclipse Auto-Scan, and if the files in the project directory are modified externally and the auto-refresh feature is turned off, the file will be out of sync, resulting in a search that occurs resource
System issues (Other features may also be the case). In addition, it is possible that the issue may be caused by an external failure to modify files in the Eclipse project.
Workaround:
There are two ways to resolve this:
1) Manual Refresh. That is, in the project catalog of Eclipse, right-click Refresh (or press F5).
2) To configure Eclipse options:
A) When Eclipse starts, refresh workspace, tick: Window->preferences->general->startup and Shutdown->refresh workspace on Startup
b) Window->preferences->general->workspace: Tick the option: Refresh using native hooks or polling and refresh on access;
question 2. M2eclipse Error "Unable to locate the Javac Compiler in:
Total error when maven package:
"Unable to locate the Javac Compiler in: D:\Program files\java\jdk1.7.0_60\. \lib\tools.jar "
method One:
- Window
Preferences, Java, installed
JREs (This step is ignored if the list contains a valid JRE). Click the "ADD" button, select the default "Standard VM", click "Next >",
Click "Directory" to the right of "JRE home" to select the folder D:\Program
FILES\JAVA\JDK1.6.0_20\JRE, all the way "OK".
- go back to the "installed JREs" screen and tick the "jdk1.6.0_20" that you just added.
- Open
"Installed JREs", "Execution Environments", click "j2se-1.5" to the left of the interface, then click "Jdk1.6.0_20" on the right.
- Restart Eclipse
Method Two:
windows->preferences->java->installed jres , plus tools.jar
Method Three:
- windows->preferences->java->installed JREs, use "Serach" to find the JRE
- Open "Installed JREs", "Execution Environments", click "j2se-1.5" to the left of the interface, then click on the right side to select the JRE you search for .
Reference URL:
http://alvinqq.iteye.com/blog/947506
http://blog.csdn.net/pengchua/article/details/2604911
Environmental issues with Eclipse 1