Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to relate JDK & JRE in J2EE development

 
Devasani Naresh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

I am new to J2EE. I want to appear for SCWCD.
I wanted to write demo programs and execute with Tomcat.

But, i dont know what are required for development(till compilation) and for deployment and running(execution).

For example in J2SE, we have JDK to develop the application and JRE-JVM for running the applications.

Could you please explain me how to relate those concepts in J2EE.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only thing you need (besides a J2SE JDK) is a servlet container like Tomcat that can run web applications. Nothing else is required.

To compile servlets you'll need to put one or two jar files in your classpath (called servlet-api.jar and jsp-api.jar); that's it. Those jar files are part of the servlet container, so you don't even need to download them separately. The javadocs for the classes contained in those jar files also comes with Tomcat, so you should be all set.
[ April 05, 2008: Message edited by: Ulf Dittmer ]
 
Devasani Naresh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ulf Dittmer,

Thanks for your reply.
If the two jars "servlet-api.jar and jsp-api.jar" are with tomcat itself, why do we need to install J2EE SDK.
Could you please tell me, where it will be usefull & its purpose.

--Naresh
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need it to compile your code.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do not need the J2EE SDK, but you do need the J2SE SDK (which contains the compiler, the JRE and the class libraries).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic