JRE : Java Glossary

go to home page J words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish 2008-12-01 by Roedy Green ©1996-2009 Canadian Mind Products
index page for letter ⇒ punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
jre Duke logo JRE
Java Runtime Environment. This is the subset of Sun’s Java Development Kit JDK/SDK that you can ship with your application. It is free.
The JRE, described here, is for people who just want to run Java programs or browse Applets on the web. You must use the much larger JDK if you want to write your own Java programs. You don’t need both.
Downloading the JRE Multiple JREs
Testing Your JRE Links
Silent JRE Installs

Downloading the JRE

You can find the various downloads with your browser. (Sun Download Manager) then manage your downloads. SDM is more awkward to use since you must determine the URLs and paste them into it. Its main function is recovering from partly completed downloads. It is probably not worth the bother unless you have a dial-up connection.

For Vista, make sure you are logged in as an administrator before you install. Some suggest it is best also to turn on UAC (that irritating Visa User Account control) during the install. The downloads are labeled as updates, but they are complete in themselves. You don’t need to install a previous version.

Version Executables Notes
JRE 1.6.0_11
(current)
Download 16 Mb self-installing executable. Look for the fourth entry, Java Runtime Environment (JRE) 6 Update 11. Then click Download. Then tick the licence agreement and Click Windows off-line Installation, Multi-language. This is most likely the version you want to download. For Vista, make sure you are logged in as an administrator before you install. The install will work more smoothly if you launch the install of the download with “run as administrator” and if you have UAC turned on. The download includes the Java Plug-in for Applets and Java Web Start. It includes the JVM and the standard class library files, but no source, and no javac.exe. It does not include JavaMail or JAF. It will install in C:\Program Files\java\jre6. If you want to write your own Java programs, install the JDK instead.
any older JRE In the you can find nearly every JRE Sun ever released, using a fill in the blanks description of what you want. If you get a broken link try composing the URL from this pattern: http://java.sun.com/products/archive/j2se/5.0_13/index.html
JRE 1.5.0_17 (old) ( 15.8 mb ) Look under Java Runtime Environment (JRE) 5.0 Update 16. It includes the Java Plug-in and Java Web Start. It includes the JVM and the standard class library files, but no source, and no javac.exe. It does not include JavaMail or JAF. No longer supported after 2008-10.
JRE 1.4.2_19 (old) Download ( 15 Mb ) Look in the JRE column, past the Netbeans stuff, lower on the page under 32-bit/64-bit for Windows/Linux/Solaris SPARC 32-bit for Solaris x86. It includes the Java Plug-in and Java Web Start. It includes the JVM and the standard class library files, but no source, and no javac.exe. It does not include JavaMail or JAF. No longer supported after 2008-10.
JRE 1.3.1 (old) Download It now includes the Java Plug-in. It includes the JVM and the standard class library files, but no source, and no javac.exe.
JRE 1.2 (old) Download It includes the JVM and the standard class library files, but no source, and no javac.exe . The java.exe file it contains is renamed to jre.exe .

You might want to manually set your JAVA_HOME environment variable to the JRE directory e.g. C:\Program Files\java\jre6. Some software finds Java using this variable rather than poking around in the registry.

Polishing and Testing Your JRE

Testing your JRE is more complicated that you might expect. You want to find out if Java is working properly on the desktop, and in each of your browsers. Further, you want to test that Java Web Start is working properly on the desktop, and in each of your browsers. Just because Java/Java Web Start works in one browser, does not mean it will automatically work in another.
  1. Configure your set environment for the CLASSPATH. If you are not sure use CLASSPATH=. See environment for details of how. See classpath for details.
  2. Copy your various library jars into the C:\Program Files\java\jre6\lib\ext directory.Sooner or later you will have to reinstall the JDK/JRE and you will lose your ext directories. You can quickly rebuild them if you maintain a bat file like this and run it after every JRE/JDK install. Adjust the file to account for where your ext dirs are and where the jars are you need.
  3. In Internet Explorer, go into Tools ⇒ Internet option ⇒ Advanced ⇒ Java(Sun). Make sure Sun Java is checked.
  4. In Internet Explorer, make sure all three boxes under Tools Internet option ⇒ Advanced ⇒ Microsoft VM are checked.
  5. In Internet Explorer 7+, you must OK allow blocked content permission to run Active X on the site, (even your own when running off-line). This also gives permission to run Java. Since Java is perfectly safe because it runs it a sandbox, logically it should not need special permission. This roadblock to Java is just part of Microsoft’s war on Sun and Java.
  6. Test your JRE on the desktop by typing in a DOS box:
    java.exe -version
    You should see the expected version you just installed, probably 1.6.0. It can be problematic to have more than one version installed at a time.
  7. Run Sun’s formal Applet test of the Java JRE in a browser.
  8. Test your JRE browser’s ability to run Applets by running Sun’s .
  9. Test your JRE browser’s ability to run signed Applets by running Wassup.

    It should tell you that your browser is using the JVM version you just installed, probably 1.6.0. Look for the line marked java.version. If Wassup does not run, or you have the wrong version, go into Settings ⇒ Control Panel ⇒ Java Plug-In ⇒ Browser and turn off each browser, then click apply, then turn them on again, then hit apply again. Then retest with Wassup. If that still does not work, turn on the Java console, try Wassup again and look for clues.

  10. Test Java Web Start on the desktop by typing javaws.exe and running any sample application.
  11. Check that the associations for the *.jnlp extension is set to point to the appropriate javaws.exe and *.jar is set to point to javaw.exe. Confirm this in any My Computer directory display with tools ⇒ folder options ⇒ file types.
  12. Set up associations for *.jar files to make them double clickable, following the instructions here.
  13. Check that Java Web Start is working in each browser by testing SetClock. Click SetClock to test.
  14. Check the Opera browser’s quick preferences to make sure you have Java enabled. Turn on the console with tools ⇒ advanced ⇒ Java console to get some hints why it may not be working. Make sure Opera has *.jnlp files associated with mime type application-x-java-jnlp-file in preferences ⇒ files.
  15. If you can’t get it to work, follow the failed install instructions.

Silent JRE Installs

If you want to install the JRE on many machines, or an install triggered by an utter novice, you would prefer a command-line style install that did not ask any questions as it progressed. That is called a silent install. It does not mean stealthily installing the JRE or other app on a machine without the owner’s notice.
Sun’s JDK Technote Guide on silent JRE installs : available:

Linux

Installing a JRE under Linux is much more complicated that under Windows. You need to perform half a dozen manual installation steps. You also need to set up a soft link from each of your browser plug-ins to the corresponding Java *.so libraries. Download and study the install instructions. You will never guess them. Consult your browser for documentation on the soft links.

Multiple JREs

If you want to install multiple JREs, first uninstall all your JDKs and JREs, then install the JREs and JDKs the oldest version first and install them in order. If you want the JDK, there in no need to install the corresponding JRE as well.

Then instead of saying java.exe, use the fully qualified name to select which version of the java run time you want e.g. C:\Program Files\java\jre6\bin\java.exe.


CMP homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.58] The information on this page is for non-military use only.
You are visitor number 129,262. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/jre.html J:\mindprod\jgloss\jre.html