How to upgrade or update the Java Runtime Environment on the BES
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>
<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:
Update the settings in the Registry.
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
<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.
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BlackBerry MDS Connection Service
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BlackBerry Collaboration Service
Update the settings in the Registry.
- Log into the BlackBerry Enterprise Server as the BlackBerry service account (BESAdmin).
- 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.
" 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.
- BlackBerry MDS Connection Service : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BlackBerry MDS Connection Service
The value of this REG_Expand_SZ should be similar to the follow:After making the above modifications and pointing to the updated versions of the jvm.dll files you must restart the modified services.
" 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"
Total Comments 0











