Tuesday, October 09, 2012

How to Upgrade JRockit


How to Upgrade JRockit


  1. Download the latest version of JRockit from http://www.oracle.com/technetwork/middleware/jrockit/downloads/index.html 
  2. Login to the server, use an XSession (i.e. VNC) as the Oracle user
  3. Run the installer and follow the screens, select the target folder for example /u01/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0


It is a good practice to create a symbolic link to reference JRockit, this makes future upgrades easier as you won’t need to modify any configuration files in weblogic, just re-create the link to the new version. If you haven’t done this, do the following steps


  1. Create a symbolic link using the following command
    ln -s /u01/java/jrockit-jdk1.6.0_33-R28.2.4-4.1.0 /u01/java/jrockit
  2. Update your profile script to set the new JAVA_HOME and PATH pointing to the symbolic link you just created
    vi $HOME/.bash_profile

    change the following:

    export JAVA_HOME=/u01/java/jrockit
    export PATH=$JAVA_HOME/bin:$PATH
  3. After saving the file run it once to test the configuration
    . $HOME/.bash_profile
  4. Test the environment variables
    java –version

    It should return something like:
    java version "1.6.0_33"
    Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
    Oracle JRockit(R) (build R28.2.4-14-151097-1.6.0_33-20120618-1634-linux-x86_64, compiled mode)

After your environment is set, you will need to edit the weblogic server scripts to reference the symbolic link (only if you haven’t done this before)

Edit the following files changing all references to jrockit to “/u01/java/jrockit” or wherever the path to your symbolic link is


  • $FMW_HOME/wlserver_10.3/common/bin/commEnv.sh
  • $FMW_HOME/user_projects/domains//bin/setDomainEnv.sh
  • $FMW_HOME/wlserver_10.3/common/nodemanager/nodemanager.properties
  • $FMW_HOME/utils/bsu/bsu.sh
  • $FMW_HOME/utils/quickstart/quickstart.sh
  • $FMW_HOME/utils/uninstall/uninstall.sh


No comments: