Solved

Compilation error on javax.servlet. etc

Posted on 2006-10-23
4
364 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now