Meaningless Drivel is fun!
The moose likes IDEs, Version Control and other tools and the fly likes Add servlet API to netbeans? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Add servlet API to netbeans?" Watch "Add servlet API to netbeans?" New topic

Add servlet API to netbeans?

adwin berkowits

Joined: Feb 23, 2012
Posts: 6
i have similar problem were can i get the servlet jar ?, and how can i add it to class path in netbeans ?
,can i get from your answer that servelt is being compile as a regular java project and not by picking the servlet file type?

that is the way i use to compile

the problem is that its create also an index.jsp in addtion to the servlet build
tell me if you succeed because i cant succeed running the servlet via tomcat
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Which NetBean package did you download? It is best to get the one identified for Java EE. The Java SE package will not support servlet development without downloading additional extensions.

If you downloaded the Java EE package, then if you create a Web Application (File | New Project | Java Web | Web Application), then NetBeans will automatically provide the servlet AP.

JBoss In Action
I agree. Here's the link:
subject: Add servlet API to netbeans?
jQuery in Action, 3rd edition