alok
alok

Reputation: 2756

Unable to open jar file in eclipse

I am unable to open jar files in eclipse. For example:

public class HttpSessionAndContextExa extends HttpServlet

if I want to see HttpServlet class it show me following error:

javax.servlet.http.HttpServlet
Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found. Please help.

Upvotes: 1

Views: 2082

Answers (1)

alok
alok

Reputation: 2756

I got the solution. The issue is due to we have not added tomcat source file for servlet in eclipse:

  1. right click on project -> prefrences -> Java Build Path -> Libraries -> add external jar - > add servlet-api.jar(in var/lib/tomcat/lib)
  2. Then add java decopiler in your eclipse with market place. Help->eclipse marketplace->search “JadClipse” ->install
  3. apply decompiler: window->prefrences->serach “decompiler” ->Apply

Upvotes: 1

Related Questions