Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it necessary JDK to execute a servlet??

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
Hi!

I'm trying to carry out 5 servlets (they use XML).

By the moment and while developing, I'm using JDK 1.3 + Tomcat + Xerces, on Windows NT 4.0

But I want to install it on other Windows PCs, and I wonder if it is necessary to install JDK, or it's enough with JRE.

I would like also to know if there is another kind of Free Java Web Server, appart from Tomcat, or a system wasting less resources.

Thank you very much, and best regards.
 
You do need the JDK to run Tomcat or any other App server. As for another java server. No. Tomcat is about the best you are going to get for free. Personally I think it is one of the best anyway. If you want to use less resources, move off the NT platform an into the Unix domain. Java is horrible on NT and not really worth it.
 
This is a bit confusing for newbies. The answer is no you don't need JDK, you do need a JRE though. Breakdown the words, JDK is Java Development Kit, JRE is Java Runtime Environment. It wouldn't make any sense if a JDK was needed to run Java Programs. That being said, it is just as easy to install the JDK as it is to install the JRE and then you have everything at your disposal if you need it.

Also, this may not even be an issue depending on your Web Container because it may come packaged with a JDK or JRE. WebLogic for example. Also I have to disagree about Tomcat. I find it slow compared to a Web Container like Resin. Resin is also free for personal use.

Another thing about running Java is that you can look for a better JRE than Sun's. An example is, on Windows I find most Applications (especially heavy Swing Apps ahem JBuilder, TogetherJ) run much better under IBM's JRE. Also Jikes kills javac in performance, it is ridiculus how much faster it is.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top