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.
> 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
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.