Eliminate jQuery Validation Errors in Eclipse

Eclipse Validation Error for a jQuery library.
Eclipse Validation Error for a jQuery library.

Eclipse doesn't like jQuery and each time I begin from a new install, I need to configure it to ignore validation errors on jQuery. I hate that little red x. See below.

Steps to Remove this Little Red X

  1. Select your project in the Package Explorer (or however you do it)
  2. Project...Properties
  3. In the left menu: JavaScript...Include Path
  4. In the source tab, expand the folder path that includes the jQuery problem. You'll see that you probably are set to include all javascript and exclude none.
  5. Click Edit... on the right
  6. Click Add... in the exclusions
  7. Browse to the jQuery file. If you use a pattern, it may exclude other files so use your head and exclude only what you intend to.
  8. Click Apply.
No more little red x
No more little red x