J2SE/J2EE

What's the difference between the Standard Edition and Enterprise Edition? Any advantages or disadvantages? I just wanna know which one I should download. Tnx!

What's the difference between the Standard Edition and
Enterprise Edition? Any advantages or disadvantages? I
just wanna know which one I should download. Tnx!Learn The Standard Edition First.
http://java.sun.com/j2se/
Learn This Later. It depends on the Standard Edition.
http://java.sun.com/j2ee/
(Yes, I need the Duke Dollars) ;)

Similar Messages

  • Design Patterns that are used in standard j2se/j2ee classes/interfaces

    Hi All,
    I am understanding following design patterns (used within standard j2se/j2ee):
    Adapter
    Facade
    Composite
    Bridge
    Singleton
    Observer
    Mediator
    Proxy
    Chain of Responsibility
    Flyweight
    Builder
    Factory Method
    Abstract Factory
    Prototype
    Memento
    Template Method
    State
    Strategy
    Command
    Interpreter
    Decorator
    Iterator
    Visitor
    I want to see if/where these design patterns are used in j2se/j2ee classes/interfaces. i am looking for few examples of standard java classes/interfaces/cases where these design patterns are used by jdk developers.
    for e.g.
    WindowAdapter class is an example of Adapter DP.
    JOptionPane is an exmple of Facade DP.
    MouseListener is an example of Observer DP.
    Similarly, where can find examples of jdk classes/interfaces of the remaining DPs.
    I searched a lot of books, but they explain the DPs by creating their own classes/interfaces.
    I would like to see where these DPs are already utilised in std j2se/j2ee
    thanks,
    Madhu_1980

    877316 wrote:
    I searched a lot of books, but they explain the DPs by creating their own classes/interfaces.
    I would like to see where these DPs are already utilised in std j2se/j2eeWell, you can go through the javadocs first, they sometimes mention the pattern used.
    Then you can get the sources for the jdk and go through the classes yourself, identifying the patterns.

  • What are the diffrences among J2SE,J2EE, and J2ME ?

    Could one explain me..what are these terms and terms like JDK,SDK and what are the diffrences and similarities.I have installed J2sdk1.4.1 in my computer.I have written some programs and run them.Applets too.What are the extra benifits that I can take if I install J2EE.In other words what are the things that J2SDK is lacking when compared to J2EE?
    Please explain..I am quite new to java.
    Regards..Saman

    J2ME - Java 2, Micro Edition.
    This is a specification, a developement platform for Java enable device, it is mostly for mobile devices,such as PDA, handphone.
    J2SE - Java 2, Standard Edition
    This is a specification, a developement platform for developing standard service, which is software. Such as graphic user interface, input output device, applet and more.
    J2EE - Java 2 Enterprise Edition.
    This is a specification, a developement platform for enterprise system, server side program. and examnple is Java Server Page, Java Servlet, Enterprise Java Bean and more.

  • Directory structure for a J2SE+J2EE project: suggestions are very welcome

    Hi, I have to start coding and organizing the CVS tree of an already mature project which is J2SE. This J2SE project can be described as a "core engine" for something else, and is a quite large project, and up to now has only a command line User Interface. I organized the dir structure as this:
    /build.xml
    /src/
    /src/java/<package>/...../*.java
    /src/demo/<package/...../*.java
    /src/test/<package>/....../*.java
    when I ant compile, all the .classes will be done in the "build" directory (reflecting the structure in the "src" dir):
    /build/
    /build/java/<package>/....../*.class
    /build/demo/<package/...../*.class
    /build/test/<package>/..../*.class
    I am happy with this, but now comes the issue: a web interface to use this core engine (it will have the same package namespace) is in developing progess, so I have to put somewhere the *.jsp, the WEB-INF dir with web.xml and servlet sources: how would you do this? And where would you let Ant put the compiled servlet classes?
    I can modify the previous directory structure to accomodate the J2EE part, this is really not a problem!
    Thanks to who can suggest me a clean solution
    Alessio

    Create a web-inf folder at the same level of src and
    jsp folder inside src
    i mean
    /build.xml
    /src/
    /src/java/<package>/...../*.java
    /src/demo/<package/...../*.java
    /src/test/<package>/....../*.java
    /src/jsp
    /web-infSo, would you put in /src/jsp only the *.jsp?
    And what in /WEB-INF ? What woud you put there? Would you do something like:
    /WEB-INF/web.xml
    /WEB-INF/src/<package>/..../<my_servlets_and_j2ee_stuff>.java
    /WEB-INF/classes/<package>/..../<my_servlets_and_j2ee_stuff>.java
    In this manner sources and classes are in the same tree, it does not seem very clean to me, expecially if you consider that probably I must have a "test" directory to unit test some j2ee stuff (as for the j2se stuff in "src"): how would you do that?
    Is this directory structure anyway what you meant or not?
    alessio

  • Installing J2SE & J2EE

    I'm running Apache Tomcat and J2SE to run JSP pages and from what I've read I need to also have J2EE installed to do certain "enterprise" things. Is this true and how do I install both to run on the same machine?

    You need to have the j2ee.jar in your classpath. You can get it an Sun's download site.

  • Oracle 9iAS: J2SE, J2EE

    Which version(s) of J2SE does 9iAS support: 1.1, 1.2, 1.3, 1.4?

    See the FAQ on OTN (http://otn.oracle.com/products/ias/htdocs/9iasfaq902.html), Section 5.0 for details about J2EE 1.3 support.
    Certification for J2EE 1.3 is currently underway and will be completed in a month or so. A preview release of OC4J stand alone is available at: http://otn.oracle.com/tech/java/oc4j/content_preview.html
    Thanks,
    Ashesh Parekh
    Oracle9iAS Product Management

  • JVM, J2SE & J2EE - Confused!

    Hi,
    I was reading specs somewhere on a java application. It says:
    - Development: JDK� 1.3.1
    - Deployment: JDK 1.1.8 or higher (JDK 1.3.1 recommended)
    1) So does this mean that any J2SE 1.3.1 code you write will run on JDK 1.1.8 or above?
    2) So could I code for J2SE 1.4 and have it run on basically any Application Server? (WebLogic, WebSphere, Oracle, etc.) ? Or do I have to decide between using J2SE 1.3 and J2SE 1.4 ?
    I want to use J2SE 1.4 but am afraid that it might not run on some application servers.

    any J2SE 1.3.1 code you write will run on JDK 1.1.8 or aboveOf course generally speaking not (though it might hold for some well-defined environment like a given IDE). That is generally not even true for 1.2; it has for example the soft/weak references, the collections, swing etc. that are incompatible with java 1.1; 1.3 has besides the Proxy etc.

  • Linux, J2SE, J2EE

    I have dowloaded both JDK Standard and Enterprise for Linux. I have installed them both successfully. Im having problems setting the paths. I do not have a /etc/profile file. What can I do to make everything work ok. Ive tried editing the .cshrc file, .bashrc file, all do not work. Im using Red Hat 7.1. If anyone has any suggestions, it would be very much appreciated.

    You should have a /etc/profile.d directory. You may write the commands to a file in the directory, e.g.
    <start of /etc/profile.d/javasetup.sh>
    #!/bin/bash
    export JAVA_HOME=/usr/java/whatever
    export PATH=$PATH:$JAVA_HOME/bin
    export CLASSPATH=.
    <end of /etc/profile.d/javasetup.sh>
    Then "source /etc/profile.d/javasetup.sh" and the environment should be set. When you next log in, you won't have to do the "source ..." command. That is only needed to apply the settings to the current environment.
    Bhav

  • J2SE to J2EE

    I'm considering a jump from J2SE to J2EE. My question is,
    What are the main differences between the two?

    "I have been using databases in some of my apps."
    JDBC lies completely inside J2SE, J2EE does not add anything to it.
    "I would like to add a servlet to my latest app."
    If you are looking into using JSPs, Servlets, and the rest of J2EE to replace PHP server applications, then you are on the right track. If you just want to use a Servlet in a regular, desktop app, you are probably looking at it wrong (adding the necessary Servlet Container (web server) would be a huge footprint to the app, and prolly something that your users would not want on their computer...)
    "...explain some of the advantages of using enterprise instead of the standard edition"
    You don't use it instead of the standard edition, you use it on top of the standard edition. You use it to write web applications. That way, you have one centralized server that does the work. The user has versions of a client (a web browser or any client that can read the data you send... this could be a J2SE desktop app if you wanted...) that the user interacts with, and which in turn interacts with the server which does the work.
    So J2EE is about layered control.
    1) The client app displays info to the user and provides a means of interaction
    2) The server stands as a listening device that sends messages to the correct part of the app and back to the user.
    2) 1) The Servlets act as a control mechanism that runs the business logic (work)
    2) 2) Other layers may handle data access and storage (databases, XML. EJBs?)
    2) 3) Other layers may handle dispaly generation (JSPs) or return information (JMS)
    The advantage is that your work is done in one place. Everyone who uses the app doesn't need to update everytime the application does. Every user doesn't need to have a DB on their computer. Users can communicate and share information more efficiently. At the same time no user gains access to someone else's data because the data storage and access is twice removed from the client...

  • Any tool like Swing for J2EE?

    Good afternoon, to see if I can clarify with your help.
    I'll do a migration to Java application that we use in my business. I will not go much into detail, but basically it is an application that uses multiple users from several different profiles, so only one application that I have thought about doing is a "web platform" where it all together.
    My knowledge of Java are regular, basic know-post-university J2SE, J2EE and little else. I started to do small things with JSP and good things seem to me comes in handy for my project, I have only one problem I have not found the solution (due to my ignorance). The problem is I do not know how to edit the forms-page visually. I do not know if there is anything Swing style, something like "design mode" where you can drag buttons, checkboxes, images ... but oriented to web. I've come to ask what I need is an editor such Dreamweaver, and then take the HTML to NetBeans ... the truth is that I'm lost.
    For that, I need to know how to edit J2EE developers websites, whether directly in HTML or PHP, whether via a Java tool or by external programs as Dremweaver web editing, or otherwise not know.
    Thank you very much.

    Forget that visual editors exist. If you want to do dynamic web programming, learn to do it through code, not by clicking. This means you'll have to know how to read, write, change and debug HTML, CSS and Javascript; the very minimal set of skills required for any web developer. There is nothing stopping you from using a tool like Dreamweaver to create the basic HTML/CSS framework, but it stops there.
    To make that process easier you may want to check out the Eclipse IDE as it has the ability to instantly make visual what you create without having to open your application in a browser, which can be a big help. That will add another thing to your TODO list though, learning how to properly use an IDE like Eclipse; you have to crawl before you can walk.

  • Using XML-based object structures to represent data in code/at run-time

    Hello,
    I have quite a "high level" question which has be bothering me for some time, and I haven't found the subject tackled in any books. I believe J2SE/J2EE is not an important divide here.
    Lets say I want to develop a J2SE game application with two programs: a "level designer", and a "level viewer", and I want to store the level files in an XML format.
    My question, and I use this example only to try and illustrate it, is:
    when coding the level designer or viewer, is it reasonable to use an XML-based object hierarchy for representing a level in code/at run-time, i.e. using the standard Java DOM APIs? Or should one (as I would have done before XML came along) develop a set of classes much closer to modelling the real form of a level, and then add a means to convert those objects to/from to XML format?
    This second option of course I would use/would have used if I wasn't thinking about XML, but isn't it sometimes easier to just read in an XML file into a DOM representation and just use the data straight out of that structure, rather than go through the bother of parsing the XML into a set of unrelated objects defined by a different family of classes? What shapes your decision here? And if the second option is best, what is the easiest way of converting to/from the XML?
    Thank you for any advice.
    Greg

    Hi Christian,
    Can I ask: what about if your domain was quite 'close' to an object/DOM representation of XML?
    For instance, what if a game operated by acting out a theatrical script, a spoken conversation, between two characters, perhaps somehow influenced at points by the user, and a particular level was just a different script for the characters.
    One could imagine that the object representation of this would in the end be quite similar to how you'd represent XML, i.e. like a tree of nodes, where each node was a line from the script, and some nodes were a decision point where different nodes could be chosen from.
    Would you still want to avoid using XML-based classes to represent the underlying 'game', or is there a point where you would 'give it' to the similarity and use existing XML structures directly?
    Thank you for any advice
    Greg

  • Content of a presentation I will give - Please advise of faults

    Hi,
    As I mentioned in another thread I have to give a presentation on a chosen subject, I chose Java. This is quite important, at least for me it is anyway, I need to know what I am talking about and believe in what I am saying, I visit a seminar in July and this is about the most important part as well as a UNIX assignment. I have listed some of the things I will say below, please advise with what you might disagree with, if you can be bothered that is, I would be grateful :). If I get this wrong I dont get asked back to the academy full time to become SCJP certified and placed in the indusrty. I dont always want to stuck in retail :(
    Title - The origins and benefits of Java
    The early days
    Java was part of a 1991 effort by Sun to produce a language and enviroment which would enable consumer electronics to be able to communicate with each other, they saw this as one of the next big things in I.T.
    The sun team which James Gosling lead the coding side, set out to make an architecture neutral programming language which would be simply to use, secure and portable. Java was origianally called oak but didnt survive a patent check and was later renamed to Java.
    Although, given there intial goals the project failed and they were turned down when showcasing a PDA called star 7 to potential customers within the industry they still had a created an extremley useful language in Java which was yet to realise its full potential.
    Years ticked by before Javas big break came when Sun teamed up with Netscape to release the Hotjava browser which brought animation amongst other things to the Internet, its worth noting that Java was originally designed independant of the Internet but was later found to be a perfect match.
    What is Java
    Java itself is similar to both C and C++, it borrows its syntax from C and its object model from C++
    Java is seen for a high level language anyways as easy to learn
    Java code compiles slower than C/C++ one may ask why would we need Java?
    Java's benefits
    Java code compiles not into Native code like other languages, this is the main reason it runs slower but is the same reason Java is portable and secure.
    This means a couple of important things in the world of networked computing, Security and portability.
    Java code compiles into bytecode which is then interperted by a Java virtual machine (JVM). This means that only the JVM needs to implented for each different type of CPU or operating system. Where the internet or corperate networks are concerned this is a major plus as both are made up of many different machines.
    Other benefits Java offers are Garbage collection, this is automatic memory managment, once the progam has finshed with an address in memory its automatically freed up, in other C/C++ this is left to programmer and can lead to errors and is also a waste of resource.
    Also, in Java there are not Pointers like C/C++ instead, Java uses references, this is also a major plus in most cases, although pointers are moe powerful they cause many errors, java eleminates these errors by hiding the responsibility from the programmer, this means the programmer cant make common mistakes in C++ which are de-alocating memory twice or not at all, also this stops the programmer pointing to parts of memory which are out of bounds. This makes java more simple and user firendly.
    Java has a massive class libary as standard, this library is on call for the programmer to call upon as needed, this library is packed with useful classes the progrmamer can use without having right the code himself.
    Java is everywhere
    Java is used in over 2.5billion devices these are listed below:
    700 million computers
    1 billion mobil phones
    1.25 billion smart cards
    plus set-top boxes, printers , webcams, games, lottery terminals, medical devices, parking payment stations etc.
    and I will include a summary cover the main points of what I have listed above.
    other things I might mention here and there.
    Java is less expensive than .NET and other languages to use, with Java you pay a one off lisence fee rather than such as Microsoft who charge annual subscription.
    Learning programming you may not see yourself as a programmer for consumer electronics but Java opens these doors to you.
    Java is an excellent first language for people to learn who are starting out in programming, less confusing than C/C++ but still powerful.
    =====================================================
    Thats about it, so come and get me! I was rather make a fool out of myself in a forum rather than at a seminar so I dont mind if your harsh, the presentation is in powerpoint format and the above is what I plan to say with the aide of slides, I wont be using notes, as they expect confidence and a sound knowledge of your subject. I know it would be nice to mention more about J2SE/J2EE but I dont have the knowlege at this stage, that is why I chose only the origins and benefits. BTW the speech is only ment to run for about 10 minutes.
    Thanks to anyone who took the time out to read the above and post any suggestions.
    Mike

    Java code compiles slower than C/C++ one may ask why
    would we need Java?It runs slower. No one cares about compile time.
    >
    Java code compiles not into Native code like other
    languages, this is the main reason it runs slower but
    is the same reason Java is portable and secure.
    That point needs more explaination. Security has many meanings and in some circumstances native code will be considered more secure.
    >
    Java is less expensive than .NET and other languages
    to use, with Java you pay a one off lisence fee
    rather than such as Microsoft who charge annual
    subscription.
    Not sure what you meant there.
    MS charges for the IDE. Sun charges for their IDE as well. The compiler is free from both however.

  • CLIENT_CREATE_FAILED in XI 7.0

    Hi ,
    This is the error that the abaper is getting,
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_CREATE_FAILED</SAP:Code>
      <SAP:P1>1</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Cannot create HTTP client (exception 1)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I have found a sap note:716739.  This is related to XI 3.0.
    This notes talks abt updating patch for Basis 640, whereas in XI 7.0 basis release is 700.
    Please suggest.
    Thanks,

    Hi,
    This problem occurs when XI is trying to send a message, but the target-system cannot be reached.
    solution of this is
    - Check if the adapter engine is up and running (J2SE /J2EE) . When this is not the case, try to restart the adapter engine
    - Try to reprocess the message.•     When reprocessing the message, the system will ask a question about the trace level that should be used in the reprocessing of the message. This question should be answered with “increased trace level”, for a more detailed trace when reprocessing the message will also fail.
    - If the reprocess of the message fails, the message will be put back in the “processed messages” list as an faulty-message
    - If the message is still faulty, then the following steps could be applied to check what the problem of this system is.
    •     First get the communication-settings like, “system name”, “port number” and “username” and “password”
    •     The second step is to “ping” the system
    •     If you can access the system with the “ping” command, then you can use telnet to control if configured port on the machine is open.
    •     If this fails control the process/script that sets up the environment and configure the ports accordingly
    •     At last you can check if the username and password are correctly configured
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • Sun ONE Studio vs. NetBeans IDE 3.5

    Now that IBM's VisualAge for Java is dead, I have been looking for a replacement IDE. I have been totally frusturated by the lack of basic information on IBM's Websphere -- their own specialists had a hard time answering elementary questions -- and the "upgrade" for VA 4, which cost $100 originally, could be $1000 to $3500 depending on what piece of Websphere you get.
    Well, so I looked at Sun ONE Studio 5.0 -- then noticed that SDK 1.4.2 was out (i had the beta). I'm doing the trial period of ONE Studio, then I get NetBeans 3.5 as part of the SDK download. NetBeans is FREE and Sun ONE Studio 5.0 is $695, and "based on NetBeans."
    "Based on?" Looking at NetBeans 3.5 IDE, I don't see what Studio offers that you don't get in NetBeans. Is there any paper or comparison anybody has written comparing the two packages?
    Both are great pieces of software, but what do I pay $695 for?

    you got integration with more wizards, deployment tools and application server for both J2SE & J2EE development.
    But it's a real shame and even scandal that this tool becomes commercial and so expensive.
    So now, you don't have the choice and you have to pay for the Sun branded tool ! (except the J2ME one)
    I had the weakness to believe that Sun and its Java wanted to have a important place in the open source or at least free software world !(clearly, it's the future ). But this aggressive(695$ !!!) commercial U-turn awakes me from my dream.
    That's it for now, I return on my beloved Eclipse Platform and its plugins, digusted ...

  • Embedding html in .java file comments

    for years now the convention has been to liberally use html in java source code comments
    to beautify javadocs. for example, i have taken this out of the source code for java.lang.System:
    * The <code>System</code> class contains several useful class fields
    * and methods. It cannot be instantiated.
    * <p>
    * Among the facilities provided by the <code>System</code> class
    * are standard input, standard output, and error output streams;
    * access to externally defined "properties"; a means of
    * loading files and libraries; and a utility method for quickly
    * copying a portion of an array.
    * @author Arthur van Hoff
    * @version 1.125, 12/03/01
    * @since JDK1.0
    the problem i see with this is that the tags must be stripped if one is producing
    documentation in formats other than html (swing doclet, or pdf doclet, or any
    application of xml).
    aren't we forever tying ourselves to html? is there any intention on the part of
    j2se/j2ee developers to discontinue this practice? i've begun working on a xul
    doclet and am having to enclose the documentation in cdata to maintain the
    validity of the document i produce (i could also just strip out the tags of course).
    thanks, eitan

    Hi Eitan,
    I see little problem as long we provide a way to
    parse whatever format is being used.
    Please take a look at the commentdom package in
    the "Doclet Refactoring Design" under "What's New"
    on the right side of the Javadoc home page:
    http://java.sun.com/j2se/javadoc/
    Here's its description:
    com.sun.tools.doclet.toolkit.util.commentdom
    DocComment to DOM Translator - Documentation comment contains embedded HTML,
    Javadoc inline tags as well as custom inline tags. This package will contain classes that will help
    generate a DOM tree for the documentation comment. This can be of great help for doclets that
    generate documentation in formats other than HTML. Such doclets don?t have to undergo the
    tedious task of parsing the documentation comments for all the tags. Doclets can then directly
    traverse the DOM tree and then convert the tags to appropriate format.
    The DOM tree will adhere to the doccomment DTD that will be published later. The DTD will
    allow required HTML tags along with their attributes as defined in HTML4.0 specifications. The
    DTD will also support Javadoc-defined inline tags as well as user-defined custom inline tags.
    We plan for the doclet toolkit other than this part to be in Tiger;
    we haven't committed dates to delivering this piece, but feel it
    would be an important part of the toolkit.
    -Doug Kramer
    Javadoc team

Maybe you are looking for