Solved

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

Posted on 2003-11-21
10
575 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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

729 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