package javax.servlet does not exit.

Hi,

Error: package javax.servlet does not exit.

I have installed j2sdk1.4.2.11 and j2ee(application server). Installed Tomacat 5.0.x

I have set my path for j2sdk 1.4.2.11. Also for J2ee . its bin directory.

When I compile servlet program, I get this peoblem.

Guide me as how can I solve this problem?

Thanks

[350 byte] By [sudpfza] at [2007-10-2 22:01:19]
# 1
Put ur servlet-api.jar in the class path( lib folder of ur WEB-INF)
mshanua at 2007-7-14 1:17:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks, but I cold not get the result.

simple is when I try to compile servlet, I get this package is not existing!

I included servlet-api.jar in classpath as

(in win - xp) for system variables

CLASSPATH = .;C:\Programme\Apache Software Foundation\Tomcat 5.0\common\lib;

and tried with:

CLASSPATH = .;C:\Programme\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar;

and tried with:

CLASSPATH = .;C:\Sun\AppServer\lib\j2ee.jar;

and tried with:

CLASSPATH = .;C:\Programme\Apache Software Foundation\jakarta-tomcat-3.3.2\lib\common\servlet.jar;

all the above possibilities I tried, but no result!!! I am not understanding the problem where this lies.

I have installed C:\j2sdk1.4.2_11 and set the path accordingly.

I have also installed" sjsas_pe-8_2_2005Q2-nb-5_0-fcs-bin-win.exe" which is a bundle version for netbeans with j2ee sun application server.

Can any one guide me to run servlet successfully!!

Thanks!!!!

sudpfza at 2007-7-14 1:17:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

hi

Hi,

>

> Error: package javax.servlet does not exit.

>

> I have installed jsdk1.4. and jdk1.3(application

> server).

>

> I have set my path for jdk 1.4.

> . its bin directory.

>

>

> When I compile servlet program, I get this peoblem.

>

> Guide me as how can I solve this problem?

>

> Thanks

bhua at 2007-7-14 1:17:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...