Welcome to Port3101.org : Your BES Connection Mark forums read | View Forum Leaders
Port3101.org : Your BES Connection



Rate this Entry

How to upgrade or update the Java Runtime Environment on the BES

Submit "How to upgrade or update the Java Runtime Environment on the BES" to Digg Submit "How to upgrade or update the Java Runtime Environment on the BES" to del.icio.us Submit "How to upgrade or update the Java Runtime Environment on the BES" to StumbleUpon Submit "How to upgrade or update the Java Runtime Environment on the BES" to Google
Posted 08-13-2009 at 04:00 AM by hdawg

As a part of any BES installer, a version of the Java Runtime Environment (JRE) is installed. Sun continually updates the JRE ... bug fixes, patches, etc ... and with their automatic auto-update you'll be sure to see it tell you to update at some point.

The first thing I do on a BES after an install or an upgrade is disable the Java auto-update. RIM released the product with a specific version / component, I'll keep it at that thank you.

For some reason, apparently enough people asked / had problems with upgrading the JRE and breaking their BES that RIM put out a KB on it.

Tell me again why someone would want to upgrade JRE? Why break what's not broken ... honestly the only thing that comes to mind is some overly controlling security group that sees a product vulnerability ... but doesn't review how the vulnerability is abused / etc.

Anyhoo, here's the details: KB17872 - How to upgrade or update the Java Runtime Environment on the BES.

(On a side note ... am I the only one wishing that new KB's posted would include some information on 5.0 also? I don't care so much about 4.0 ...)


<hr class="section">
Environment

<content>
  • BlackBerry® Enterprise Server versions 4.0 and 4.1
  • Java® Runtime Environment (JRE™) versions 1.5 and 1.6
</content>
<hr class="section">
Overview

How to upgrade the Java Runtime Environment (JRE)

Upgrading the JRE on the BlackBerry Enterprise Server can affect two services. The BlackBerry MDS Connection Service and BlackBerry Instant Messaging Connector.
This Knowledge Base article (KB12450) is an excellent article for confirming where the current installation of the JRE is. Warning: The following procedure involves modifying the computer registry. This can cause substantial damage to the Windows operating system. Document and back up the registry entries prior to implementing any changes.
Download the update you wish to install on the BlackBerry Enterprise Server.
Confirm the current settings:
  • Open a command prompt on the BlackBerry Enterprise Server (Start -> Run -> cmd) and enter "java -version". This will report the current running version.
  • On the BlackBerry Enterprise Server, browse to c:\Program Files\Java\<version>\bin\client. Right-click on jvm.dll and select Properties. Click on the Version tab and select Full Version.</version>
  • Open the Registry on the BlackBerry Enterprise Server (Start -> Run -> regedit). Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BlackBerry MDS Connection Service. Double-click on ImagePath and locate the path to the jvm.dll.
Export the Registry for these keys (right-click and select Export) as a backup:
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BlackBerry MDS Connection Service
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BlackBerry Collaboration Service
Perform the installation/upgrade.
Update the settings in the Registry.
  1. Log into the BlackBerry Enterprise Server as the BlackBerry service account (BESAdmin).
  2. Open the Registry and browse to these keys:
    • BlackBerry MDS Connection Service : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BlackBerry MDS Connection Service
      Double-click the ImagePath string value and update the jvmpath variable to the udpated location of jvm.dll. Do not change any other settings.
    The value of this REG_Expand_SZ should be similar to the follow:
    " C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\bin\bmds.exe" -s jvmpath="C:\Program Files\Java\jre1.6.0_02\bin\client\jvm.dll" -XX:+DisableExplicitGC -Xss128K -Xmx768M -Xms128M classpathdir="C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\classpath\\" wrkdir="C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\Servers\BESNAME1\\" webserverdir="C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\webserver\\" -rbes "BESNAME1_MDS-CS_1"
    • BlackBerry Instant Messaging Connector : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BlackBerry Collaboration Service
      Double-click the ImagePath string value and update the jvmpath variable to the udpated location of jvm.dll. Do not change any other settings.
The value of this REG_Expand_SZ should be similar to the follow:
" C:\Program Files\Research In Motion\BlackBerry Enterprise Server\BBIM\bin\bcol.exe" -s jvmpath="C:\Program Files\Java\jre1.6.0_02\bin\client\jvm.dll" -XX:+DisableExplicitGC -Xss64K -Xmx512M -Xms128M classpathdir="C:\Program Files\Research In Motion\BlackBerry Enterprise Server\BBIM\classpath\\" wrkdir="C:\Program Files\Research In Motion\BlackBerry Enterprise Server\BBIM\Servers\BESNAME1\\" -feature cwa -rimbes "BESNAME1_BBIM_1"
After making the above modifications and pointing to the updated versions of the jvm.dll files you must restart the modified services.
Posted in Uncategorized
Views 1785 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 10:45 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.


 

Content Relevant URLs by vBSEO 3.3.2 PL2