Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes J2SE and J2EE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "J2SE and J2EE" Watch "J2SE and J2EE" New topic
Author

J2SE and J2EE

Varuna Seneviratna
Ranch Hand

Joined: Jan 15, 2007
Posts: 167
please
tell me the fundamental difference between J2SE and J2EE.Most of the things that can be done using J2EE can be done using J2SE.Including serverlets and JSP's according to my knowledge
Thanks Varuna
I posted this question after a through search in the forum


Varuna Seneviratna
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

"J2SE" is the core of Java: all the java.* packages, and some javax packages like Swing. "J2EE" is all the enterprise APIs which aren't part of J2SE: Servlets, JSPs, EJBs, JavaMail, Management, etc, etc.


[Jess in Action][AskingGoodQuestions]
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

J2SE is the Java 2 Standard Edition that contains your basic core Java classes. This is the one that most people use to write your standard applets and applications.

J2EE is the Java 2 Enterprise Edition and it contains classes that go above and beyond J2SE. In fact, you will need J2SE in order to use many of the classes in J2EE. Some of the things that J2EE provides are server-side classes such as Servlets and EJB's. It also contains Security API, Java Mail API, XML Parsers etc., Java Messaging Service API, and a few others. A few of these API's have been included in the new J2SE 1.4 version and are now considered standard. The XML API is an example of this.


===Vyas Sanzgiri===
My Blog
Varuna Seneviratna
Ranch Hand

Joined: Jan 15, 2007
Posts: 167
Thanks to Vyasu Sanzgir and Ernest Friedman-Hill, For your replies and to You Vyasu for your detatiled reply and to you Ernest for showing me the way to drawspace
Thanks Varuna
Prosenjit Banerjee
Ranch Hand

Joined: Dec 18, 2002
Posts: 102
Thanks from me too. But I want to know more. I am also very confused with J2EE and consider it very difficulat in comparison with J2SE.
I know absolutely nothing about J2EE. For J2SE my favourite book is Core Java written by Cay Horstmann and Garry Cornell.
But I want to know a very good book thoroughly discussed about J2EE. Please help me by referring a very good book. Thanks in advance.


Always say the TRUTH only
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41603
    
  55
J2EE is a huge subject, comprising lots of APIs. You might start by getting an overview in the Sun J2EE Tutorial, and then move on to specialized books covering particular APIs. You can find reviews of such books here at JavaRanch, in the "J2EE", "Enterprise JavaBeans", "Web Services and SOAP" and "Servlets, JSP and Tag Libraries" sections.
[ June 23, 2007: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
Varuna Seneviratna
Ranch Hand

Joined: Jan 15, 2007
Posts: 167
Hi Serverlets and JSP's can be developed using J2SE and implementing tomcat as the web server so up to now what I see is there is no difference between the two
considering the various types of applications that can be created from both of them.I would like to know what is "Java Web Start" that comes with jdk1.4 which is the version used to create serverlets.Is there a version without a "Java web start" feature.The murach Book uses this version to create JSP's and serverlets
Thanks Varuna
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41603
    
  55
Servlets and JPSs are not part of the J2SE. To compile and run them you need additional libraries which are part of J2EE (although it's not necessary to install the J2EE Reference Implementation to use them, since the libraries also come with all other servlet container).

Web Start is part of the J2SE -since 1.4 I believe-, so a JDK that does not contain it would have to be rather old. More information about it is here.
Varuna Seneviratna
Ranch Hand

Joined: Jan 15, 2007
Posts: 167
Hello My Question is serverlets and JSP's can be developed using java web start technology what is the use of J2EE.
Varuna
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41603
    
  55
serverlets and JSP's can be developed using java web start technology what is the use of J2EE


I think you are confused about what Java Web Start is, because it has nothing to do with servlets/JSP (and neither one of them can be used to develop the other).

The point of J2EE is to enhance J2SE by all those capabilities Ernest listed above. None of those are possible with just J2SE.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2SE and J2EE