Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Add servlet API to netbeans?

 
adwin berkowits
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

http://briggs.myweb.port.ac.uk/WEBP/notes/tools/nbservlets.htm

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
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic