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

J2SE and J2EE

 
Varuna Seneviratna
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Vyas Sanzgiri
Ranch Hand
Posts: 686
Chrome Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Varuna Seneviratna
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Varuna Seneviratna
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic