Upgrade Java for your Code42 server
Who is this article for?
CrashPlan for Small Business, no.
Code42 for Enterprise, yes.
Link: Product plans and features.
Overview
If your upgrade failed, you may need to upgrade the Java version for your Code42 server. Manually upgrading Java is only necessary when you upgrade to certain versions of the Code42 server on Linux. Windows upgrades include the required Java version.
Linux
If your server upgrade failed, you may need to upgrade Java version for your Code42 server. See our system requirements to verify you are upgrading to a supported Java version. Newer Java versions are not certified by Code42 to be compatible with older Code42 server versions.
Step 1: Identify your Java installation
- Stop the Code42 server.
- Navigate to the main application directory.
- /opt/proserver (applies to Code42 servers installed as root on Ubuntu)
- Open the file .install.vars in a plain text editor.
- 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.
- If your
Step 2: Reinstall Java
Select an option based on the location of your Java installation.
Option 1: Bundled Java
- Within the main application directory, rename the jre directory to jre_old as a backup.
- Create an empty jre directory in the main application directory.
This replaces the original jre directory. - Download the 64-bit tarball for the desired version of Oracle JRE supported by your Code42 server.
- Extract the tarball to the jre directory in the main application directory.
- Continue to Step 3: Start your Code42 server.
Option 2: System Java
- Install a supported JRE to a /jre subdirectory in the main application directory: /opt/proserver/jre
- Open the file .install.vars in a plain text editor and update the
JAVA_HOME
line to point to the /opt/proserver/jre directory where you installed the updated JRE. - Continue to Step 3: Start your Code42 server.
Step 3: Start your Code42 server
- Start the Code42 server.
- Sign in to the administration console.
- On your file system, navigate to the main application directory.
- 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
Manually upgrading Java is an unsupported process because newer Java versions are not certified by Code42 to be compatible with older Code42 server versions.
- Stop the Code42 server.
- Navigate to the main application directory, which contains the jre directory.
- C:\Program Files\CrashPlan PROe Server
- Rename the jre directory to jre_old as a backup.
- Create an empty jre directory in the main application directory.
This replaces the original jre directory. - Download the 64-bit Windows EXE for the desired version of Oracle JRE supported by your Code42 server.
- Install the JRE to the jre directory within the main application directory.
- Double-click the EXE.
- Select Change destination folder.
- Click Change.
- Browse to the jre directory.
- Click Next to complete the JRE installation.
- Start the Code42 server.
- Sign in to your administration console.
- On your file system, navigate to the main application directory.
- Remove the jre_old directory.
External resources
- Oracle: JRE version 8