?
Solved

Compilation error on javax.servlet. etc

Posted on 2006-10-23
4
Medium Priority
?
386 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
[X]
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
  • 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 1500 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
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.
Suggested Courses

649 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