This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Starting from scratch Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Starting from scratch" Watch "Starting from scratch" New topic
Author

Starting from scratch

Rohit Mehta
Ranch Hand

Joined: Mar 11, 2005
Posts: 79

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


- Rohit
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

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.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Rohit Mehta
Ranch Hand

Joined: Mar 11, 2005
Posts: 79

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

Joined: Aug 16, 2005
Posts: 14114
    
  16

The libraries that you need for the servlet API are included with Tomcat - you don't need the full Java EE SDK.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Rohit Mehta
Ranch Hand

Joined: Mar 11, 2005
Posts: 79

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

Joined: Aug 16, 2005
Posts: 14114
    
  16

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

Joined: Mar 11, 2005
Posts: 79

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
Marshal

Joined: Mar 22, 2005
Posts: 41586
    
  54
You do not need a working installation of the J2SE JDK. The JEE SDK does not include the compiler, JVM or J2SE class libraries.


Ping & DNS - my free Android networking tools app
Rohit Mehta
Ranch Hand

Joined: Mar 11, 2005
Posts: 79

"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
Marshal

Joined: Mar 22, 2005
Posts: 41586
    
  54
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

Joined: Mar 11, 2005
Posts: 79

Thanks Ulf!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Starting from scratch