Skip to content

Sun JRE Install Script Update

I’ve updated my Sun Java Runtime Environment 1.6 Update X script, again. Updating this script seems to be a never ending task, usually because I find mistakes but this time around I’ve made a couple of changes including Windows x64 support. The script will now supports installing the 32-bit version of the JRE on x86 and x64 Windows and configures the environment accordingly.

A second change I’ve implemented is in the way the script adds registry entries to fool applications that expect earlier versions of the JRE to use the latest installed version. This change uses a text file that lists the earlier versions for import into the registry.

To use this script, save the script, the versions text file and the JRE installer to a folder on a local drive. Then elevate a command prompt to run the script and install.

SunJRE

Now I’ve got to get XenApp 5.0 Management Console using the latest JRE, but that’s for another post.

3 Comments

  1. Mike Dolan wrote:

    Just thought you should be aware that disabling the automatic update via HKLM\SOFTWARE\JavaSoft\Java Update\Policy stopped working a long time ago.

    If you search Suns knowledge base you will see a lot of complaints from enterprise users.

    To disable autoupdate, you now need to either delete the startup link from the registy:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
    “SunJavaUpdateSched”=-

    or modify the deployment.properties file.

    Otherwise, excellent blog - keep it up!

    Cheers,
    Mike

    Posted on 08-Jul-08 at 3:14 pm | Permalink
  2. Thanks Mike, time for another update top the script.. ;)

    Posted on 08-Jul-08 at 4:22 pm | Permalink
  3. Paul Mras wrote:

    Hi,

    We’re using your script but ran into a problem in that we can’t seem to open the Sun Java Console from IE v7.0.5730.13 now.

    From a command prompt you can run ‘java -version’ on this same machine and get a response of “1.6.0_07″

    This current state of affairs breaks an application we use called SSL Explorer. More on that here: http://3sp.com

    Please advise

    Posted on 26-Aug-08 at 4:33 pm | Permalink

One Trackback/Pingback

  1. [...] don’t know why I keep getting involved with Java. I know I’ve written about it more than a few times before, but it’s not because I like Java… So before I get [...]