Is javamail part of JDK/JRE

Can any one tell me whether JavaMail is part of JDK or JRE. If so, what is the purpose of providing it separately

But JDK may be providing some mailing utilities,
right? How is this utility different from the one
provided by JavaMail. What exactly is the advantage
of using JavaMailThe only thing the JDK provides for mailing is a very
old sun.* class that you're not supposed to be using
and that has very, very limited capabilities.
The advantage of using JavaMail is that it was designed
for sending mail and it supports everything you need to send
(and read) the most common types of email.

Similar Messages

  • Is JTA part of JDK

    Can any one tell me if JTA is part of JDK/JRE. That is, if I have JDK/JRE is there any need for me to have it separately

    But JDK may be providing some mailing utilities,
    right? How is this utility different from the one
    provided by JavaMail. What exactly is the advantage
    of using JavaMailThe only thing the JDK provides for mailing is a very
    old sun.* class that you're not supposed to be using
    and that has very, very limited capabilities.
    The advantage of using JavaMail is that it was designed
    for sending mail and it supports everything you need to send
    (and read) the most common types of email.

  • Can I get rid of parts of the JRE for my app?

    I am trying to figure out how to easily deploy a stand-alone desktop Swing application. It's more like Microsoft Word than the typical Swing business app that deals with networks and databases. I'd like to make this easily downloadable by regular people, like a 10-year old who has installed an IM client, or a 70-year old who has downloaded the latest version of a browser, i.e., just download an installation file and then click to install in the relatively standard manner in which Windows apps are installed.
    What I am definitely trying to avoid is making the user go to Sun's Java distribution website, which is written by computer geeks for computer geeks. If a potential user sees that, they'll get confused, give-up, and I'll have lost a potential user.. Since a Swing application that is developed and tested using an earlier version of the JRE won't necessarily work with a later version, I can't make the assumption that as long as the latest JRE is installed on the user machine, everything is fine. As far as I can tell, I need to download a self-contained version of the JRE that I developed with in order to guarantee that the app will run as expected. I also don't want the user to have to download a 15 Mb 1.5 JRE, or the purported 50 Mb 1.6 JRE just to be able to run my little program. (I'm really starting to see why there are no popular Java desktop apps.)
    So my question is - if I compile my application down into machine code from binary code, does anyone know if can I get away with running it with a stripped-down JRE? I'm wondering if I can get rid of parts of the JRE that deal with things like interpreting bytecode, networking or database access, none of which I need to worry about. Sun's legal department might not like this, but is this at all technically feasible? I'm actually happy to hear about any ideas regarding shrinking the size of the distribution. Thanks.

    I voted for the enhancement request. It is almost exactly what I am concerned with.
    I am a big fan of Excelsior Jet. I tried out the free version about a year-and-a-half ago, and was pretty happy with it. It was actually the only machine-code compiler I tried out of several that worked. If I ever get to the point where I can start selling my app, I expect that I'll use it. I've been checking the website every so often since then, and reading about the next version, where a JRE can be included in the distribution. That helped spark my original question. While the worry about making sure my application had the right JRE version will be solved, it still bugs me that I have to ship so much unnecessary JRE code. (I blame Sun for that, not Excelsior Jet.) I was wondering if it was at all technically feasible to strip out the unnecessary code, irrespective of the legal issues. When compiled to byte-code, my program is under 1 MB. When I compiled it to machine code under JDK 1.4, it was about 5 MB. I imagine that compiling to machine-code with the included 1.5 JRE, after compression, will result in a size in the 15-20 MB range. And this after refactoring my program to where it's about 1/3 it's original size. I'm really worried about the direction this is going, and I don't even want to think about what including the 1.6 JRE will require.
    Where did you read that I've been programming Java since '97. I was a contractor at Sun between 1995 and 1997, and started working on Java 1.0 apps back then, but I don't ever remember mentioning that. If you asked because you're thinking I should know more about JVM/JRE issues, you're probably right, but I focus almost exclusively on higher-level application and GUI/Graphics issues. The deep-down Java stuff makes me break out into a cold-sweat.

  • SDK, JDK, JRE,

    Hi everyone,
    I'm very very new to Java etc. I want to learn JSP/Servlets.
    Now I see I need to install software, I see things as SDK, JDK, JRE what is this all? What do I need?
    I tried to find the info but there is so much information I'm not sure what I'm looking at. So I thought if there is any expert here that can clearly explain what the difference is between SDK, JDK, JRE.
    Thank you very much!!
    Regards,
    Steven.

    JDK:     When you download Java, you will get a couple of tools: the compiler, a tool to generate documentation, a tool to change security settings and a tool to run compiled Java programs (class files). All of these tools bundled together is called the Java Development Kit (JDK). If you want to create your own Java program, this is what you need. Later we will show you where you can get the JDK, and how you should use it.
    SDK:      Since the introduction of JDK version 1.2, a different name is used for the Java Development Kit: Java 2 Software Development Kit (SDK).
    JRE:      The Java Runtime Environment (JRE) is part of the JDK. It contains only those tools that are needed to run java programs. It does not contain the compiler. Therefore it is a lot smaller than the JDK. If you develop a Java program for someone else, you are allowed to give him the program and the JRE so he can run your program. Officially you are not allowed to distribute the JDK, but anyone can download it freely from internet. The JRE for Windows also contains the Java plugin.
    from: http://www.win.tue.nl/~marko/java/
    To get Java set up, follow the tutorial "First Cup of Java":
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/

  • Memory problem with jdk/jre 1.1.8

    My name is BERGMANN Yannick.
    I'm working for IRM in Li?ge and we developped an application (user interface for an industrial measurement system) in Java (JDK/JRE version : 1.1.8).
    We have a big memory problem with this application :
    - This user interface is running on a WINDOWS NT PC with 128MB.
    - This is the command to lanch our application :
    C:\Program Files\JavaSoft\JRE\1.1\bin\jrew.exe" -ms32m -mx32m -cp "\Program Files\HMI\HMI.zip;\Velocis\Add_On\Jdbc\raima.jar;\Program Files\Swing-1.1.1\swingall.jar" be.irm.hmi.kernel.HMI -t15 -d"Velocis rdstcp" -newdb -mf1m -mr20
    - When our application is running, everything seems to be OK in memory for it. The garbage collector seems to work properly and our application has always at least 5MB free memory (We use the java instruction "Runtime.getRuntime().freeMemory()" to know this).
    - But when we look in the "Windows NT task manager" for the "jrew" application, the memory increases ALWAYS.
    - After 5 days our application is completely frozen and blocked ...???
    - here is a memory map of our Windows NT PC :
         "jre.exe"     "commit total"     "commit limit"     "commit peak"     "physical total"     "physical available"     "physical file cache"     
    Monday     92264     109256     194944     109424     130484     19492     6216     
    Thuesday     106196     123072     194944     123348     130484     6072     5840     
    Wednesday     110836     132288     194944     132416     130484     4408     5140     
    Thursday     108200     144980     194944     145140     130484     4888     5148     
    Friday     109440     158319     194944     161334     130484     4911     4992     
    Monday     111600     209060     228548     209148     130484     5184     3484     
    Have you any idea of what is happening with "jrew" in memory ?
    We have had this problem for six month and we are totaly out of idea.
    If you can give us any idea, we'll appreciate a lot.
    Thanks in advance,
    BERGMANN Yannick
    IRM SA - Software Engineer
    Tel. (32)4/239.90.10
    Tel. (32)4/239.90.74 (direct)
    Fax (32)4/263.40.97
    E-mail [email protected]

    We had a memory problem with a swing applet in our company. The major reason for this was that we added new components in a JTree and removed them later again, and the components we removed were never garbage collected. This was because with these components we added different listeners, and we didn't remove the listeners after we didn't need the components anymore. After we corrected this, the components where garbage collected.
    Perhaps it's a similar problem you have, or I have no idea. Check that you remove actionlisteners, mouselisteners etc from components you want to be garbage collected.
    You could also test your application with OptimizeIt to see what objects you create and how many you get of them over time: http://www.vmgear.com

  • Error in writing to file '$ORACLE_HOME/jdk/jre/bin/java'

    Hi,
    I have installed Forms & Reports Services Standalone (10.1.2.0.2) on RHEL 5 and now I am applying the Oracle Application Server 10g Release 2, Patch Set 3 (10.1.2.3), but OUI gives the following error:
    Error in writing to file '$ORACLE_HOME/jdk/jre/bin/java'.
    [$ORACLE_HOME/jdk/jre/bin/java
    (Text file busy)]
    I can't seem to find anything about this error on metalink or via google. Can anyone help me solve this? Thanks.

    Ok, this time I stopped all processes first with opmnctl stopall and emctl stop iasconsole. I then started OUI again to install the patch. It seemed to go fine - i didnt get that java error this time, but another error almost at the end of the installation:
    Error in invoking target 'proxy_install runm_install server_install cgi_install
    cli_install conv_install qv_install' of makefile
    '/opt/oracle/Forms10gR2/reports/lib/ins_reports.mk'
    According to Metalink ID 564174.1 - "Any installation of Oracle Application Server 10g Release 2 (10.1.2.0.2) on OEL 5.x or RHEL 5.x in which Reports is getting installed will fail with reports relinking errors" and the solution is as follows:
    # rpm -i xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm
    # mv /usr/lib/libXtst.so.6 /usr/lib/libXtst.so.6.ORG
    # ln -s /usr/X11R6/lib/libXtst.so.6 /usr/lib/libXtst.so.6
    I have already done these 3 steps before the base installation (just to avoid this error), yet I am getting this error even when the symbolic link already exists. Do you think I can just ignore this error and continue with the installation, or is there something else I need to check first?

  • JDK/JRE Version support for Oracle Lite

    Hi,
    We have developed an application using jdk 1.4.x which also using Oracle9i Lite 5.0.2 release as a database. Application behaves normal except while closing it throws java exception (Exceptio Guard Page Exception) error.
    Is it because of the JDK Version we are using? What is the JDK/JRE version level supported by Oracle Lite.
    Thanks
    Krishna

    Right
    I got the same problem too.
    When my program and oracle 9i lite is running under JRE1.3.1, everything is ok.
    However, when i migrate the jre to 1.4.x, the program must fail and report DLL exception after closing.
    So trouble~!

  • Iwcadmin error with JDK/JRE version

    hi,
    I encountered this problem when executing iwcadmin utility ./iwcadmin -V in SJM on Sun Solaris , an error prompt displays "
    Java runtime at /opt/ca/sharedutils/JRE/1.4.2_09 is below minimum requirement of 1.5.0
    Please make sure the Java runtime at standard location meets the
    minimum requirement, or set JAVA_HOME to point to an installation that does.
    here is the OS and other JDK / JRE path available in the system.
    other jdk5 : /usr/jdk/jdk1.5.0_16/ or jre5 /usr/jdk/jdk1.5.0_16/jre
    uname -srv
    SunOS 5.10 Generic_137137-09
    How can I make it use the jdk5/jre5 or at least temporarily during my user session?

    Not sure which shell you are using but ....
    CSH: set JAVA_HOME=/usr/jdk/jdk1.5.0_16
    KSH or BASH: export JAVA_HOME=/usr/jdk/jdk1.5.0_16
    then just invoke "iwcadmin"

  • Which JDK/JRE is the best for 8i?

    After seeing so many people having problems with 8i I
    would like to ask what version of JDK/JRE works best??
    Thanks
    Lynx
    null

    Oh that! I forgot that there were problems with the 1.1.6 revs
    and glibc2.1! Thanks for the info.
    Have people been succesful with 1.1.7???
    Keehan
    Thorsten Heit (guest) wrote:
    : Keehan (guest) wrote:
    : : Just wondering peoples various experiences have been with
    : : different versions of the JDKs/JREs? Why would you say that
    : : 1.1.7 v 3 would be better other than the obvious fact that it
    : is
    : : a more current rev?? Thanks for your time and thoughts!
    : The problem is that earlier versions of the JDK/JRE don't work
    : on RH6 because RH6 uses the glibc-2.1 that isn't directly
    : compatible to the glibc-2.0 :-(
    null

  • Oracle universal installer asking JDK/JRE location

    hi,
    i am trying to open the Oracle universal installer in Linux but it is asking to specify the JDK/JRE location.
    it gives me a prompt to enter the above,
    the prompt is,
    Please specify JDK/JRE Location (e.g. /home/jre), <location>/bin/java should exist:
    please help.
    thanks,

    What do you expect to get from the installation of Oracle Fusion? Oracle Fusion Application is a collection of software, and each software has its own instructions to download/install.
    http://www.oracle.com/us/products/applications/fusion/index.html
    http://becomeappsdba.blogspot.com/2007/02/is-oracle-fusion-really-confusion.html
    do i need to install fusion middleware seprately first before installing fusion apps?
    i thought fusion apps would include everything including middleware, DB etc.Yes -- If you want to install Oracle Fusion, you have to install the Database first then Oracle Fusion Middleware.
    Thanks,
    Hussein

  • List of available JDK/JRE

    Is it possible to retrieve list of available JDK/JRE in java(swing) application ?

    Hi There,
    Right, there is no prebuilt method available. But, if you want you can have a look at registry key
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
    You will get all the required information.
    Hope it helps
    Ashish

  • JDK/JRE release announcement list?

    I've looked high and low, but cannot find anywhere that is a definitive e-mail release announcement distribution point for the JDK/JRE (announcements only, not a bunch of additional "newsletter" content). [email protected] doesn't have such a list, and I can't find something similar on SDN or via searching java.sun.com.
    Am I simply overlooking something?

    Hi There,
    Right, there is no prebuilt method available. But, if you want you can have a look at registry key
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
    You will get all the required information.
    Hope it helps
    Ashish

  • Diffrence among JDK,JRE,JVM

    Dear All,
    Please tell me the diffrence among JDK,JRE,JVM

    http://www.jguru.com/faq/view.jsp?EID=46223

  • Difference between JDK/JRE

    Guys,
    I need to know the difference between JDK and JRE? When should one use JDK and when one should use JRE. What is the advantages/disadvantages of using one over other.
    Cheers,

    Shutt up guys... one person is to know some thing about JDK/JRE, and you.....
    Any way
    Hi tnischal!
    Your question was about JDK/JRE
    JDK = Java Development Kit
    JRE = Java Runtime Environment
    JRE is a comolete Setup of J2sdk1.4.1(LatestVersion of JDK(1.4.1) with other requirements to use this version included JDK1.4.1,JavaWebStart,SunJVM,Java2PlatForm, and all other needs for it.
    while JDK is only the Software Development Kit. Previous versions of JDK than V1.4.1 did not need the all Runtime Environment for JDK, You just copy the JDK Folder in your machine and use it
    But you can't use JDK1.4.1(fully) without other requirements of use it.
    Hope you got the difference now.

  • Difference between JDK , JRE J2EE

    Hi
    Would anybody just show the difference between JDK , JRE , J2EE , and J2RE
    Thanks alot

    JDK - Java SDK from Sun
    JRE - Java Runtime Environment
    J2EE - Java 2 Enterprise Edition
    Basically, JDK is J2SE, Java Standard Edition. You need this to develop and to compile standard Java software. JRE allows only execution without any special components. J2EE is extension to J2SE. It contains Business or Enterprise components like Java Beans.

Maybe you are looking for

  • How can I process an xml/xsl file pair that require the Internet Explorer dom?

    My personal navigation device (GPS) generates xml files that contain a record of where I have been, together with when I was there, how fast I was driving at the time, etc. taken at approx. 5 second intervals. This xml file has an xml-stylesheet with

  • How do I Open a Vi reference to and run a Polymorphic VI?

    In my case, I was trying to use a PolyVI Refnum to an instance of PID.vi. Even though I set the inputs for some of the controls, I have no output.the Invoke Method of 'Run VI' does not return an error. The Invoke Method of Ctrl Val. Get All does not

  • BW Query showing more Material than R/3 Query, Why..??

    Hi All, I am facing problem when running the query on Inventory cube 0IC_C03. I have loaded data from 3 Data Sources 2LIS_03_BX, 2LIS_03_BF and 2LIS_03_UM as mentioned in below link and strictly followed by applying Marker updates after the load http

  • Simple question about telnet and characters

    Hi all, We've installed for the first time a SUN machine. So i think it's for a SUN expert a very simple question. Normally when i type a special character it will be dispayed like " � " [alt+132] But when i use a telnet session and i type "alt+132"

  • Error while invoice creation through VF01

    Hey while saving a invoice through VF01....... following  syntax error is coming: The disctinary structure or table k9rprd6000003 is either not active or does not exist. Request to help me to solve the problem