This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Servlets and the fly likes import javax.servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "import javax.servlet" Watch "import javax.servlet" New topic

import javax.servlet

venuvvp prasad

Joined: Apr 04, 2008
Posts: 3
i am facing problem in importing javax.servlet.*;.i am using java1.5.
while i am compiling code it says package javax.servlet is not found
vas reddy

Joined: Jun 11, 2008
Posts: 23
You need to place servlet.jar in the path
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14961

See Compiling Servlets in the JavaRanch FAQ.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
sachin verma
Ranch Hand

Joined: Mar 25, 2008
Posts: 177
I think you are using JDk only.

servlet is not the part of JDk.
use any of the above given solution or install appropriate version of j2sdk


Campbell Ritchie

Joined: Oct 13, 2005
Posts: 44048
Welcome to JavaRanch

Servlets are hardly beginner's Java, so I shall move you to the servlets forum.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: import javax.servlet
It's not a secret anymore!