From http://imwill.com/eclipse-java-ee-jquery-validation-error-workaround/#.UK7jAOOe-I5
Workaround - How to Fix To get rid of the annoying error symbol, follow these steps:
1) Right-click the Project root folder in the Project Explorer Explorer Eclipse view
2) Go to Properties → JavaScript → Enable Path → Source Tab
3) Select “Excluded” and “Change ...” and then “Add”.
4) Now you can either view the JavaScript file with errors, or simply enter a substitution pattern that excludes anything that matches your pattern. In my case, I introduced ** / jquery * .js to exclude all jQuery library files.
5) Then you can click “OK”, “Finish” and “OK” again
6) The message Building Workspace should now appear in your Eclipse progress view
7) Tada! The error symbol has disappeared!
In addition to the above steps, I had to manually remove the old problem markers.
source share