Solved

how to slove error on "package javax.servlet.jsp does not exist"

Posted on 2003-11-21
10
572 Views
Last Modified: 2013-11-24
Dear all i cannot compile the following java program, SlideTag.java

//package media;
package com.sun.estore.taglib;

import javax.servlet.jsp.*;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import RTPTransmit;


public class SlideTag extends TagSupport
{
      private String IPAddress = new String();
      private int port;
      private String type = new String();
      private String locator = new String();
      private long duration = 0;
      private String hasvideo = new String();
      private String hasaudio = new String();
      public String code = new String();
      
      public SlideTag(){super();}
      
}

the following error occurs

package javax.servlet.jsp does not exist
import javax.servlet.jsp.*;

i'm using jdk1.3.1 and SlideTag.java is saved in jdk1.3.1/bin
Any help would be greatly appreciated....

0
Comment
Question by:ahnui79
[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
  • 6
  • 2
10 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 63 total points
ID: 9797999
You need to add servlet.jar to your classpath....

I know servlet.jar comes with tomcat

and I think it comes with J2EE

Tim
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9798022
PS:  Assuming you have tomcat, in version 4.1 it is in

/tomcat/common/lib

:-)
0
 
LVL 15

Assisted Solution

by:jimmack
jimmack earned 62 total points
ID: 9798030
Unless it's Tomcat 5, then you need servlet-api.jar

Also, I would strongly recommend that you change the location that you are saving your .java files!

Create a separate working directory for each of your projects and put the source files in that.  You shouldn't be adding anything to the JDK's bin directory.
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
LVL 35

Expert Comment

by:TimYates
ID: 9798047
>  Unless it's Tomcat 5, then you need servlet-api.jar

Oooooooooh!  Tomcat 5!  Get her! ;-)  hee hee hee ;-)  (j/k) ;-)
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9798051
> You shouldn't be adding anything to the JDK's bin directory.

This is very, very true
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9798099
(I would like to apologise for my post 2 posts up from here -- it's late on a Friday afternoon...maybe I should go home)
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9798131
It's OK Tim ;-)

>> maybe I should go home

Hmm.  Better get a move on before the men arrive to take you away.  Can you hear the siren in the distance?

;-)
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9798179
Eeeek! *runs* ;-)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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:
Suggested Courses

734 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