Needed softwares to run simple servlet

Hi,I aready downloaded and installed J2EE 1.4 SDK in my pc.Is it enough to compile and deploy,run servlet programs?Or I have to install something?Will you please help me to clarify my doubt?Tahnk you so much.
[250 byte] By [javatechalla] at [2007-10-2 20:15:44]
# 1
At the bare minimum, you will need an application server. Sun's may have been provided in the JDK download. If not, Jakarta Tomcat is probably the most used right now. There is extensive deployment documentation available on their site.- Saish
Saisha at 2007-7-13 22:58:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi,

Thank you so much for your reply.

I already get Sun Application server by download,installing J2EE 1.4

Now my doubt is that to run servlet the servlet development kit is already in J2EE 1.4 SDK or I have to down load it seperately?.

But I heard about that J2EE contains servlets 2.4.So try to serach the jsdk jar files in the J2EE installed directory.But I could not see that.Then How can I set the jsdk.jar in my class path.Is any mistake in my seraching?

Will you please explain me ?

Thank you so much.

javatechalla at 2007-7-13 22:58:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

> Hi,

> Thank you so much for your reply.

>

> I already get Sun Application server by

> download,installing J2EE 1.4

>

Right. They like to bundle their app server with the J2EE 1.4 SDK.

> Now my doubt is that to run servlet the servlet

> development kit is already in J2EE 1.4 SDK or I have

> to down load it seperately?.

>

You should have both. There are already example servlets in the bundle you downloaded. Also, check the documentation for the Sun application server for deployments. You can find out about Servlet deployment for NetBeans at:

http://www.netbeans.org/kb/50/quickstart-j2ee.html

However, the most extensive documentation available is for Tomcat. I highly recommend you download that as your application server. Though Sun's will do well also.

> But I heard about that J2EE contains servlets 2.4.So

> try to serach the jsdk jar files in the J2EE

> installed directory.But I could not see that.Then How

> can I set the jsdk.jar in my class path.Is any

> mistake in my seraching?

>

There is normally a JAR named servlet.jar or j2ee.jar. You only need it in your classpath at compile time. The Servlet container (Tomcat, etc.) will already load those JAR's internally at run time. However, to compile, you need to add one of the aforementioned JAR's to the compile-time classpath.

> Will you please explain me ?

>

> Thank you so much.

You are welcome.

- Saish

Saisha at 2007-7-13 22:58:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Hi,Thank you so much for your reply.After your reply I got the servlet.jar file in the bundle.So I use it in my classpath and try to run simple servlet.thank you.
javatechalla at 2007-7-13 22:58:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

Hi,

Sorry I have mistaken.

I have netbeans 4.1 in my pc.So when I search for servlet.jar I got serach result from netbeans folder but not from j2EE.

But J2EE.jar file is there.

Is this J2EE.jar enough to compile,deploy the simple servlet?

Otherwise j2sdk.jar is must to do that?

Will you please explain me ?

Thank you so much.

javatechalla at 2007-7-13 22:58:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
http://www.netbeans.org/kb/41/j2ee-server-integration.htmlBest of luck.- Saish
Saisha at 2007-7-13 22:58:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...