Wednesday, 27 May 2015

Eclipse: Add the javax.servlet package to a project?

Some time in eclipse project we have exception in all the .java file where we use any servlet package this is because of we do not include servlet file in system jdk path.

To solve the error please follow bellow steps :

  1. Right click your project folder, select Properties at the bottom of the context menu.
  2. Select "Java Build Path"
  3. Click Libraries" tab
  4. Click "Add Library..." button on right (about halfway down)
  5. Select "Server Runtime" click "Next"
  6. Select your Tomcat version from the list
  7. Click Finish

KEEP READING FOR MORE POST

No comments:

Post a Comment