Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Compilation error on javax.servlet. etc

Posted on 2006-10-23
4
373 Views
Last Modified: 2010-03-31
Using iGRASP I'm trying to compile on my local machine file that uses the following references and getting errors:

ScorecardSelector.java:31: package javax.servlet does not exist
import javax.servlet.RequestDispatcher;
                     ^
ScorecardSelector.java:32: package javax.servlet does not exist
import javax.servlet.ServletContext;
ScorecardSelector.java:36: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletResponse;
                          ^
ScorecardSelector.java:53: cannot resolve symbol
symbol  : class HttpServlet
I have full SDK 2.0 and separate javax package, but don't know where should it be placed for this project to see it at compile time.
Please help. I need it ASAP.
Thnx
PS. I'm new to Java.

0
Comment
Question by:laguna21
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:Manish
ID: 17793711
Do you have j2ee.jar ?
Is it in classpath?
0
 

Author Comment

by:laguna21
ID: 17795265
yes, I have it in my CLASSPATH...
0
 
LVL 11

Accepted Solution

by:
Manish earned 500 total points
ID: 17795873
ru using any IDE?
0
 

Author Comment

by:laguna21
ID: 17796102
I've added servlet.jar to my classpath and it worked. Thank you very much for the idea
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
spring jars download 1 35
ejb on wildfly 5 30
Is there a simpler dropbox system? 10 34
Setup GlassFish 4 21
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to implement Singleton Design Pattern in Java.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question