Before writing Java project, always appear to introduce jquery error, although the application of its methods have no effect, but feel uncomfortable, after Baidu to solve the method:
The first step:
To remove the JS validation from eclipse:
Will Windows->preference->java script->validator->errors/warnings->
Enable Javascript sematic Validation in front of the hook removed;
Step Two:
Right click Project--Properties--Builders remove JavaScript Validator front tick
If there is no JavaScript validator this item in builders. Then go to the. project file to modify the following:
Locate the project directory and delete the following sections in the. project file in the projects directory:
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments></arguments>
</buildCommand>
and <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
Note that modifying the. project file may require you to restart Eclipse, or close the project in Eclipse, and then reopen the project.
Step Three:
Copy the JS file to a place, and then delete the error JS file directly from eclipse, the mistake disappears, and then the
A JS file to copy in.
If this is not the case, just open problems view in Eclipse, select the relevant error, and follow the prompts to resolve it.
Above replication and http://www.jb51.net/article/46642.htm
Eclipse removes jquery introduction error