Tuesday, March 11, 2014

Solve javascript errors in Eclipse

When you import a java web project into eclipse at first time you may always get some JavaScripts errors like
If those files with errors are yours you may want to fix them. But practically in most instances the files come from some third party libraries. So that is impossible to fix them by yourself. Hiding those errors become the best or only choice.

Two ways:
1. Disable all validations: Window-->References-->Validation

Not only ignore those javascript errors but also accelerate your eclipse.

2. Exclude JavaScript files:
Right click project-->Properties-->JavaScript-->Include Path-->Source (Tab), modify the directory or add exclusion pattern. Anyway I have excluded all...


No comments:

Post a Comment