Skip to main content
Code42 Support

Upgrade Java for your Code42 server

Applies to:
  • CrashPlan PROe

Overview

This article explains how to upgrade the version of Java that your Code42 server uses. The recommended process is to upgrade your Code42 environment to the latest version. On Linux, the upgrade process will point you to the correct version of Java to download. On Windows and OS X, the upgrade package has the required version of Java bundled with it.

Manually upgrading Java outside of upgrading your Code42 environment is not a supported process.

Considerations

The manual processes below refer to the main application directory of the Code42 server. By default, that directory is:

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

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 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 Code42 server.
  2. Navigate to the main application directory.
    • /opt/proserver (applies to Code42 servers installed as root on Ubuntu)
  3. Open the file .install.vars in a plain text editor.
  4. Read the line JAVA_HOME.

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 desired version of Oracle JRE supported by your Code42 server.
  4. Extract the tarball to the jre directory in the main application directory.
  5. Continue to Step 3: Start your Code42 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 Code42 server.

Step 3: Start your Code42 server

  1. Start the Code42 server.
  2. Sign in to the 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 Code42 server upgrade.

Alternative solution

Unsupported process
Manually upgrading Java is an unsupported process, because the Java version you manually upgrade to might not have passed our testing yet.
  1. Stop the Code42 server.
  2. Navigate to the main application directory, which contains the jre directory.
    • C:\Program Files\CrashPlan PROe Server
  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 desired version of Oracle JRE supported by your Code42 server.
  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 Code42 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 Code42 server upgrade.

Alternative solution

Unsupported process
Manually upgrading Java is an unsupported process, because the Java version you manually upgrade to might not have passed our testing yet.
  1. Stop the Code42 server.
  2. Download the Mac OS X x64 DMG for the latest version of the Oracle JRE supported by your Code42 server.
  3. Mount the DMG.
  4. Double-click the PKG and follow the prompts to install the Oracle JRE.
  5. Start the Code42 server.
  6. Sign in to your administration console.

External resources