Skip to main content
Code42 Support

Upgrade Java for your enterprise server

Applies to:
  • CrashPlan PROe

Overview

This article explains how to upgrade the version of Java that your enterprise server uses. In most cases, the recommended process is to upgrade your Code42 environment. The alternative process, manually installing the newest version of Java regardless of your enterprise server version, is not supported in most cases.

Considerations

This article refers to the main application directory of the enterprise server. By default, that directory is:

  • Linux: /opt/proserver
    Applies to enterprise servers installed as root on Ubuntu
  • Windows: C:\Program Files\CrashPlan PROe Server
  • OS X: /Applications/PROServer.app/

For Linux and Windows, the recommended process is to upgrade your Code42 environment. Manually upgrading Java outside of upgrading your Code42 environment is not a supported process.

  • On Linux, the upgrade process will point you to the correct version of Java to download.
  • On Windows, the upgrade package has the required version of Java bundled with it.

For OS X, if you upgrade to the latest version of the enterprise server, the correct version of Java is bundled with the upgrade package. If you are staying on version 4, you will need to manually upgrade Java using the alternative solution outlined below.

Linux

Recommended solution

Upgrade your Code42 environment to the latest version. During the installation, you will be prompted to download the correct version of Java.

Alternative solution

Unsupported process
Manually upgrading Java in Linux is an unsupported process, because the Java version you manually upgrade to might not have passed our testing yet.

Step 1: Identify your Java installation

  1. Stop the enterprise server.
  2. Navigate to the main application directory.
  3. Open the file .install.vars in a plain text editor.
  4. Read the line JAVA_HOME.
    • If your JAVA_HOME refers to a path within the main application directory, use Option 1: Bundled Java.
    • if your JAVA_HOME refers to a path outside the main application directory, use Option 2: System Java.

Step 2: Reinstall Java

Select an option based on the location of your Java installation.

Option 1: Bundled Java
  1. Within the main application directory, rename the jre directory to jre_old as a backup.
  2. Create an empty jre directory in the main application directory.
    This replaces the original jre directory.
  3. Download the 64-bit tarball for the latest version of Oracle JRE 7.
  4. Extract the tarball to the jre directory in the main application directory.
  5. Continue to Step 3: Start Your Enterprise server.
Option 2: System Java
  1. Use your operating system to uninstall the outdated JRE and reinstall a supported JRE.
  2. Continue to Step 3: Start Your Enterprise server.

Step 3: Start your Enterprise server

  1. Start the enterprise server.
  2. Sign in to your administration console.
  3. On your file system, navigate to the main application directory.
  4. Remove the jre_old directory.

Windows

Recommended solution

Upgrade your Code42 environment to the latest version. The correct version of Java is bundled with the enterprise server upgrade.

Alternative solution

Unsupported process
Manually upgrading Java in Windows is an unsupported process, because the Java version you manually upgrade to might not have passed our testing yet.
  1. Stop the enterprise server.
  2. Navigate to the main application directory, which contains the jre directory.
  3. Rename the jre directory to jre_old as a backup.
  4. Create an empty jre directory in the main application directory.
    This replaces the original jre directory.
  5. Download the 64-bit Windows EXE for the latest version of Oracle JRE 7.
  6. Install the JRE to the jre directory within the main application directory.
    1. Double-click the EXE.
    2. Select Change destination folder.
    3. Click Change.
    4. Browse to the jre directory.
    5. Click Next to complete the JRE installation.
  7. Start the enterprise server.
  8. Sign in to your administration console.
  9. On your file system, navigate to the main application directory.
  10. Remove the jre_old directory.

OS X

Recommended solution

Upgrade your Code42 environment to the latest version. The correct version of Java is bundled with the enterprise server upgrade.

Alternative solution

  1. Stop the enterprise server.
  2. Download the Mac OS X x64 DMG for the latest version of the Oracle JDK 7.
    You must download the JDK, not the JRE.
  3. Mount the DMG.
  4. Double-click the PKG and follow the prompts to install the Oracle JDK 7.
  5. Start the enterprise server.
  6. Sign in to your administration console.

External resources