JDK vs JRE

In production environments it's usual to install the JRE instead of JDK, thinking that JDK contains development tools that shouldn't be in these environments.
However, there are people who think some of these tools are useful even in a production environment. In fact, Tomcat and other Java software is usually installed over a JDK.
I would like to know your opinions about this topic. Thankyou.

A servlet container needs the ability to compile code
because of JSP. Yeah, but you don't need the whole JDK for that (that's several dozen more Megs of data).
You can take the "tools.jar" from a JDK and stick it into the JRE's lib directory, and stick that in your classpath. (Tomcat's startup script will handle this automatically).

Similar Messages

  • Errors installing and uninstalling JDK and JRE 5.0 update 6

    I recently removed some older versions of java as they take up alot of space.. now wondering if i should have.
    I uninstalled all version fine, leaving only the update 6 for both JDK and JRE. Now when i try to compile in Jcreator i get the error message:
    'Error : Invalid path, "C:\ProgramFiles\Java\jdk1.5.0_05\bin\javac.exe" -source 1.5 -classpath "C:\Program Files\Xinox
    Software\JCreatorV3LE\MyProjects\Chapter07_Listing03" -d C:\Program"
    Files\Xinox "Software\JCreatorV3LE\MyProjects\Chapter07_Listing03
    @src_chapter07_listing03.txt"'
    I have no javac file in the directory.I did before i unstalled the older updates
    I am getting a windows installer error when trying to install JDK 5.0 update 6, windows installer works when trying to uninstall though. When i try to remove JDK 5.0 update 5, it tells me i all ready have this version installed, and to uninstall through my add/remove utility which is what i am doing! Then if i click ok i get: 'Fatal error during installation' This also occurs when trying to remove update 6. I also get problems with my JRE 5.0 update 6. When trying to uninstall i get the message 'error applying transforms, verify paths are valid' I cannot get rid of these!. It seems to be interfering/linked with installing them aswell.
    PLEASE HELP ME-i just want to compile
    Thank you

    This forum is for Sun Java Studio Creator product only... We'll be happy to assist you anytime if you have trouble installing or using this product. :-)

  • JVM Loader Error: Unable to find supported JDK or JRE version

    Hello,
    I am trying to use Visibroker (Borland version 6.5) with JDK 1.5.2
    When I try to run idl2java, it gives me the following message:
    JVM Loader Error:
    Unable to find a supported JDK or JRE version. The JVM Version should be either 1.3.1 or 1.4.1 and above.
    Check your installation and use -VBJjavavm or -javahome(vbj only) to specify the JDK or JRE location
    I am using eclipse IDE - i created an external tool configuration for idl2java giving the argument *.idl
    I looked in the forum and tried the suggestions given in this thread
    http://forum.java.sun.com/thread.jspa?threadID=376403&messageID=3052413
    Where am I going wrong. Can someone help me?
    Thaks
    Manju

    Hi,
    I don't know if you got an answer to this problem. It looks like you need to install Borland Service Pack 1 (for BES 6.5) to fix this issue. I spent a couple of days squirming, trying to figure out this issue.
    Hope this helps.
    Regards,
    Sony.

  • Upgrading JDK and JRE in 10.2.0.4 Oracle_Home of 11.5.10.2 EBS ?

    I've tried to find something at Metalink but failed.
    What's the lastest Java Version certified to use with the database ORACLE_HOME (10.2.0.4) in 11.5.10.2 EBS? And what's the procedure to update it?
    There is no hint in note 300482.1 "Overview of Using Java with Oracle E-Business Suite Release 11i" and the Java version related documents.
    I found note 418399.1 "How To Update The Default JDK and JRE Installed In Oracle Database Home 10.1 and 10.2" which states "...When installing a new version it is important that the major version (1.4) remains the same, and you only change the "update" number...." But that note is not EBS related.
    So is there no way to update Java in ORACLE_HOMEs beyond 1.4?
    Thanks
    Martin

    Hi Hussein,
    thx for your help!
    There is no special cause. I'm trying to keep our installations current.
    I thought that I had to update the Database JDK in earlier cases before migrating to autoconfig or before applying MPs. And as Steven Chan wrote something about [the implications of end-of-life of J2SE 1.5 for EBusiness Suite in his blog|http://blogs.oracle.com/stevenChan/2009/06/understanding_j2se_15_endoflife_implications_for_apps.html] I thought that I better should check if I got to update the DB Oracle_Homes, too.
    Martin

  • Cannot find JDK and JRE?

    I am configuration Hyperion, and it pops up an information say: Cannot find JDK or JRE, I have set the JAVA_HOME environment variable to c:\Program Files\Java\Jdk.1.6, but still get this error, what's wrong with me?

    Hi,
    It does not use the JAVA_HOME environment variable, it will try to use the JRE installed with hyperion, if it can't find it then you receive the error message.
    The JRE's should be in the \Hyperion\common directory e.g. \Hyperion\common\JRE or \Hyperion\common\JRE-64
    If you don't have these directories then something has gone wrong with the installation.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • JDK and JRE comptability for Windows server 2008

    Hi,
    Could someone please let me know what are the JDK and JRE versions that are comptabile with Windows server 2008 ?
    Thanks.

    Hi,
    For security purposes, the IP address for the Windows Update web site constantly changes and it is not a fixed address. Also, there is no official publication of the
    IP addresses. We normally advise against defining IP addresses on the firewall for this purpose. Instead, we suggest either allowing all outbound connections to http & https ports or defining the DNS addresses as permitted destinations for traffic via
    the firewall.
    For up-to-date information about the IP's being used by Windows Update, use the DNS system, as this is the only reliable up to date source of information. If you use
    DNS, make sure the following destination hosts are specified:
    http://windowsupdate.microsoft.com
    http://*.windowsupdate.microsoft.com
    https://*.windowsupdate.microsoft.com
    http://*.update.microsoft.com
    https://*.update.microsoft.com
    http://*.windowsupdate.com
    http://download.windowsupdate.com
    http://download.microsoft.com
    http://*.download.windowsupdate.com
    http://wustat.windows.com
    http://ntservicepack.microsoft.com
    http://stats.microsoft.com
    https://stats.microsoft.com
    Thanks for your understanding.
    Best Regards,
    Nina
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • What is the difference between jdk  and jre

    what is the difference between jdk and jre
    plzz tell me in detail

    It's an extremely important skill to learn how to search the web. Not only will it increase your research and development talents, it will also save you from asking questions that have already been answered numerous times before. By doing a little research before you ask a question, you'll show that you're willing to work and learn without needing to have your hand held the entire time; a quality that is seemingly rare but much appreciated by the volunteers who are willing to help you.
    If you've done the research, found nothing useful, and decide to post your question, it's a great idea to tell us that you've already searched (and what methodologies you used to do your research). That way, we don't refer you back to something you've already seen.
    To get you started, here is an excellent resource: The Java� Glossary

  • Whatz the difference between jdk and jre

    i would like to know the difference between jdk and jre.

    Yes JRE is Java Run Time Environment. The java programming language adds the portability by converting the source code to byte code version which can be interpreted by the JRE and gets converted to the platform specific executable ones. Thus for different platforms one has corresponding implementation of JRE. But JRE has to meet the specification JVM (Java Virtual Machine) Concept that serves as a link between the Java libraries and the platform specific implementation of JRE. Thus JVM helps in the abstraction of inner implementation from the programmers who make use of libraries for their programmes.
    The JDK(Java Developmental Tool kit) comes along with java libraries and JVM embedded in it. Apart from these it comes along with the utility tools for byte code compilation "javac", Executing the byte codes through java programmes through "java" and many more utilities found in the binary directory of java. Speaking practically JDK is essential for developers, which comes along with library packages to develop Software programmes. While JRE is minimal set of programmes which executes the java class files developed by the software developers.

  • Difference between JDK ,SDK ,JRE

    Hi all,
    Im confused about the difference between JDK ,SDK ,JRE.What all is needed to install Java.Please elaborate.

    Even on Venus. ;)
    Goddess on the mountain top
    Burning like a silver flame
    The summit of beauty and love
    And Venus was her name
    She's got it
    Yeah, baby, she's got it
    I'm your Venus, I'm your fire
    At your desire
    Well, I'm your Venus, I'm your fire
    At your desire

  • Major Difference between JDK and JRE

    Hi Support,
    Major Difference between JDK and JRE
    can you please distinguish between these two ,
    Thanks

    860707 wrote:
    Hi Support,This isn't 'support' it's a forum.
    Major Difference between JDK and JREYes, there is.
    can you please distinguish between these two ,
    Here.
    db

  • Executing via JDK not JRE

    I wrote a class that compiles code using the Compiler API, but it only works when running from the JDK's JVM ( ToolProvider.getSystemJavaCompiler() always returns null if you don't). In Eclipse, I just set the Standard VM to jdk1.6.0, however I need to run this class from the command line, and when I do that, it looks like it runs the standard JRE. Is there any way (a cmd line option or something) to use the JDK not JRE to run the code?
    Thanks

    RobbieMc wrote:
    Is there any way (a cmd line option or something) to use the JDK not JRE to run the code?
    ThanksIf you want to run one of the java executable in the JDK, just use a full path to the executable. In Windows, in this machine, I would use
    C:\Program Files\Java\jdk1.6.0_04\bin\java <classname> or
    C:\Program Files\Java\jdk1.6.0_04\jre\bin\java <classname>
    The first executes the java.exe in the JDK's bin directory, the second runs the java.exe in the JKD's JRE.

  • JNI Issue on JDK vs JRE

    Dear all,
    I've a JNI dll that run fine when the execution is done with java.exe of JDK, but if I execute the code using java.exe of JRE I got an error of "access an invalid memory location". Both JDK and JRE are "1.6.0_21" on 32 bits.
    Does anybody already have a problem like this?
    Best regards

    You have a bug in your JNI code. Pointer error or a misuse of an API.
    The fact that it works in one place does not change that. It only means that the failure didn't cause that one to fail.

  • SaxParser comes with jdk or jre

    Hi,
    I want to know if the SaxParser comes with the JDK or JRE and also if so, from which version the parser is included?
    Thanks in advance
    Deb

    >
    I want to know if the SaxParser comes with the JDK or JRE and also if so, from which version the parser is included?
    >
    No entity known as 'the SaxParser' exists. But 'a SaxParser' is part of Java.
    http://docs.oracle.com/javase/1.4.2/docs/api/org/xml/sax/package-summary.html
    >
    Since:
    JDK1.4
    >
    Depending on what you plan to do you may want to use a 3rd party version. Many Oracle tools (e.g. sql developer) include jar files with sax parsing included.

  • Updating java when using JDK and JRE

    Ok, so after you make a program in java and compile it, you then install the new update of java. Wouldn't the virtual machine(JRE) or java development kit(JDK) notice something thats different and bring up an error?
    Do you have to use the same JDK as JRE that you have, because if you didn't have the most updated one, wouldn't there come up with an error?
    Last question, if you have used the command line to compile a program, then you know that you need to use javac to compile and java to run it. Well when you use the command javac to compile, then you are using the JDK; and if you use the java command to run it, then you are using JRE. This is just a question to make sure that I have this correct, So correct me if I'm wrong.

    brown16b wrote:
    Ok, so after you make a program in java and compile it, you then install the new update of java. Wouldn't the virtual machine(JRE) or java development kit(JDK) notice something thats different and bring up an error? Why? A newer Java version should be able to execute programs compiler for a prior version.
    Do you have to use the same JDK as JRE that you have, because if you didn't have the most updated one, wouldn't there come up with an error?Eh, what?
    Last question, if you have used the command line to compile a program, then you know that you need to use javac to compile and java to run it. Well when you use the command javac to compile, then you are using the JDK; and if you use the java command to run it, then you are using JRE. This is just a question to make sure that I have this correct, So correct me if I'm wrong.It's correct.

  • Managing JAVA JDK and JRE with Package Management in Solaris 11.1

    I want to manage Java JDK & JRE in an Solaris environment using Package Management I'm currently running Solaris 11.1 in a VMWare host. My current latest Java release is JDK1.7.0_07 and JRE1.7.0_07. I want to upgrade to JDK1.7.0_17 & JRE1.7.0_17 using Package Management. I've tried on several occasions to upgrade to latest release of Java but I have not been successful. Each time I try using the Package Management GUI or use command line they appear to be successful but the new release does not show.
    What could I be doing wrong?
    Thanks

    I also learned that the READMEs for the following patches in My Oracle Support also describe the downgrave process:
    Patch 18362676: JAVA 6 DOWNGRADE INCORPORATION FOR ORACLE SOLARIS 11.1.15.4.0 AND 11.1.16.5.0
    Patch 18362686: JAVA 7 DOWNGRADE INCORPORATION FOR ORACLE SOLARIS 11.1.15.4.0 AND 11.1.16.5.0
    -- Alan

  • Differences between jdk and jre

    can anybody explain the differences between jdk and jvm. and relation between jdk, jre and jvm.
    thanks

    Hi,
    JDK- Java Development Kit contains compiler and other appliction development tools. with this tool you can compile as well as run your application
    JRE-Java runtime Environment where Java applications are exceuted .You can only run your application here but you cant develop and compile.
    JVM-Java Virtual Machine Its interpretor which interprets and then executes you coded after it is compile ( to byte code) by Java Compiler.

Maybe you are looking for