Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting from scratch

 
Rohit Mehta
Ranch Hand
Posts: 79
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am starting from scratch - for a Struts (2.0)app with Tomcat & Eclipse
i want to use Java 1.5
Just wondering that i require JDK 1.5, Java EE SDK 1.5 or both!

thnx
rohit
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts2 requires Java SE 5 or above. To run struts2 application, you only need a web container (not necessary to have a full-fledged JavaEE server) and Tomcat should suffice your needs.
 
Rohit Mehta
Ranch Hand
Posts: 79
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Freddy,

what put me in dilemma that Java EE JDK supports JSPs & not the SDK, so the confusion.

But i see that SE JDK would suffice.

thanks again
rohit
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15284
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The libraries that you need for the servlet API are included with Tomcat - you don't need the full Java EE SDK.
 
Rohit Mehta
Ranch Hand
Posts: 79
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jesper, you cleared my doubt!

Just wondering - so in which case exactly we need to get the Java EE SDK!

cheers
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15284
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat only implements part of the Java EE specification - the web tier (servlets and JSPs and some other APIs).

A full Java EE application server also provides EJBs, JMS and a lot of other services.

If you download the Java EE SDK from Sun, what you actually get is the GlassFish application server, which is Sun's reference implementation of Java EE.
 
Rohit Mehta
Ranch Hand
Posts: 79
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jesper! last doubt ..

Say we need to develop something on EJBs. We need Java EE SDK for same - i assume.

In that case, do we also need Java SE JDK (for basic things like package java.lang, the VM, etc..) - or the Java EE SDK would fulfill all requirements?

Thanks for your time!
Rohit
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do not need a working installation of the J2SE JDK. The JEE SDK does not include the compiler, JVM or J2SE class libraries.
 
Rohit Mehta
Ranch Hand
Posts: 79
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"You do not need a working installation of the J2SE JDK. The JEE SDK does not include the compiler, JVM or J2SE class libraries."

Thanks & Sorry - this seems contradictory to me ....

If the JEE SDK doesn't come up with basic packages & JVM etc, then how things would go forward!

Rohit
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rohit mehta:
"You do not need a working installation of the J2SE JDK. The JEE SDK does not include the compiler, JVM or J2SE class libraries."

Thanks & Sorry - this seems contradictory to me ....

If the JEE SDK doesn't come up with basic packages & JVM etc, then how things would go forward!


You're quite right. I meant to type "you do need a working installation...". Not sure what I was thinking that made me type the "not".
 
Rohit Mehta
Ranch Hand
Posts: 79
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic