Re: Please Answer Newbie Question




Bjorn Abelli wrote:
> <aaronhirshberg@xxxxxxxxx> wrote...
>
> > I have J2SE 5 installed on my PC and am using it.
> > I went to install J2EE, but the "bundle" at the sun
> > website included J2SE 5 and a web server and some
> > documentation.
>
> If you don't want all of it, just choose another bundle!
>
> On the right side of page
>
> http://java.sun.com/j2ee/1.4/download.html
>
> ...the packages you mentioned can be downloaded separately.
>
> > So that implies that the J2SE JDK has
> > servlet and JSP class files in the class libs already
> > on my PC.
>
> Why would you come to that conclusion?
>
> Servlet and JSP classes are not in the J2SE, they're in the J2EE.
>
> The reason to why they "offer" you to download a "full" download, including
> J2SE, is simply because J2EE is built on top of J2SE, and needs it to work.
> That's often the case when you want to install the application from scratch
> on a different machine.
>
> > But I get compile errors related to these classes
> > not being found. So I should just uninstall the
> > J2SE 5 and install the J2EE and get it over with?
>
> You could do that... ;-)
>
> Or..
>
> > Or is there a separate package of class libs I can
> > add to the J2SE?
>
> As I said, look on the right side of the download page. There you'll find
> the application server as a separate download.
>
> However, you're not telling what you're using it for, other than implying
> that you're going to develop servlets and JSP.

Yes. I am working out the exercises in some Java books.

> If you're doing it just to learn how to make servlets and JSP, and using a
> tutorial that examplifies with the Sun implementation, then that could be
> the safest way to go ahead.

The tutorial uses Tomcat. Which I have already installed. So I will
look for those libraries in the Tomcat installation, and modify my env
vars accordingly, or write a *.bat file to compile that brings in the
libs in the Tomcat installation.

> But there are other implementations of servers able to run Servlets and JSP,
> than the application server from Sun. If you intend to use any of those, you
> don't need the full kit from Sun. Just install *that* server, and use the
> libraries provided with it. In most cases they use "scaled down" versions of
> the libraries which are often more easy to handle.

Or I will do as the other person suggested and download the Sun server
stuff and find the libs in there.

Aaron

.



Relevant Pages

  • Re: J2ME or network programming or...what do you recommend?
    ... I started doing the servlets along with the JSP. ... Well depending on how dynamic you want the client to ... needed) to java server programs? ...
    (comp.lang.java.programmer)
  • Re: welches System =?ISO-8859-15?Q?f=FCr?= einen Shop ?
    ... Als Server steht ein Linux Server mit root Zugriff (um diverse Pakete zu ... Mysql) und welche Plugins sind z.B. für Eclipse notwendig um auch ... Und wenn dann mit Servlets und JSP. ...
    (de.comp.lang.java)
  • Re: how to implement this page by jsp?
    ... Can I do it with Servlet or jsp? ... > picture generated by the server at run time? ... showing a chart. ... If you know about Servlets and JSPs you can create such a page yourself. ...
    (comp.lang.java.programmer)
  • Re: How do I display pdf doc in browser using jsp - no servelet
    ... You wrote that you are using JSP. ... JSPs should be able to host vanilla Servlets just fine. ... Servlet - that's the typical / standard way to produce PDFs over the ... You already have static files of PDFs on your web server. ...
    (comp.lang.java.programmer)
  • Re: New Event Log Errors!
    ... Somehow along those lines I'd also installed the Certificate Authority ... Did you apply the last Server Pack for SBS Server? ... Please install Windows Support Tools on the win2k3 sp1 problematic ... Microsoft is providing this information only as a convenience to you: ...
    (microsoft.public.windows.server.sbs)