Tuesday, November 16, 2010

How to add a JavaScript Library in Eclipse

it is very easy, but when you do not know it, it is sometimes very hard.
Following steps should be done:


  1. Download JavaScript Library whichever you wish
  2. Put it somewhere in the project folder, BUT NOT in the WEB-INF folder, better above, otherwise
    Eclipse and Tomcat would not recognize it
  3. Follow this path in Eclipse: 
    • Window -> Preferences -> JavaScript -> Include Path -> User Libraries -> New...
      1. Create there a new library with the name you wish
      2. Click on "Add .js file"
      3. Find your library in the project and add it
      4. Click OK
This is it, you are done!

No comments:

Post a Comment