Wiki - Upgrading Java

Compatibility

Objective

Learn the recommended way to install, remove, or upgrade Java

Steps

  1. Windows
  2. macOS
  3. Linux

Windows

  1. Make sure QZ Tray and other Java dependent software are closed

    • The easiest way to close out of QZ Tray is to go to the System Tray > QZ Tray > Exit
    • Check Windows Task Manager for other Java programs. Look for java.exe or javaw.exe in the process name/details.
  2. Optional: Uninstall all Java versions

    • If you do not require a specific version of Java for another program, it is highly recommended to uninstall all versions currently installed prior to updating
    • To uninstall, go to Control Panel > Programs > Programs and Features
  3. Download the Java offline installer here

    • If on a 64-bit operating system, you may have both 32-bit and 64-bit Java versions installed. If this is the case, make sure to download and install both versions
    • You can check for 32-bit installations by verifying if there is a Java folder in C:\Program Files (x86)
  4. Run the installer(s) and follow the prompts on the screen

    • The installer will look similar to jre-8u91-windows-x64.exe

    • If you did not follow step 2, you may be prompted to uninstall out-of-date versions of Java. If you are certain you do not need the older versions, it is recommended to uninstall.

      image

  5. Verify the Java version

    • Go to the start menu and search for "Java" > open "Configure Java" > Click "About..."

    • Alternatively, you can open a Command Prompt and type java -version

      image

  6. Test QZ Tray

    • If no shortcut has been created, launch the software by going to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QZ Tray
    • Test functionality by visiting our demo page. Note that this page only works with 2.0 or higher.

macOS

  1. Make sure QZ Tray and other Java dependent software are closed

    • The easiest way to close out of QZ Tray is to go to the System Tray > QZ Tray > Exit
  2. Optional: Uninstall all Java versions

    • If you do not require a specific version of Java for another program, it is highly recommended to uninstall all versions currently installed prior to updating

    • Open a terminal (found in Applications > Utilities) and type the following commands:

      sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin 
      sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane
      
      # **Additional directories to purge to uninstall JDK**
      sudo rm -rf /Library/Java/JavaVirtualMachines/jdk<version>.jdk
      sudo rm -rf /Library/LaunchAgents/com.oracle.java.Java-Updater.plist
      sudo rm -rf /Library/PrivilegedHelperTools/com.oracle.java.JavaUpdateHelper
      sudo rm -rf /Library/LaunchDaemons/com.oracle.java.Helper-Tool.plist
      sudo rm -rf /Library/Preferences/com.oracle.java.Helper-Tool.plist
  3. Download the Java offline installer here

    Note: If JDK is installed, that must be upgraded, as QZ Tray defaults to the JDK version. Download the JDK installer here.

  4. Run the installer and follow the prompts on the screen

    • The download should look similar tojre-8u111-macosx-x64.dmg or jdk-8u111-macosx-x64.dmg
  5. Verify the Java version

    • Open up a terminal and type java -version. This will first return the JDK version on the system. If JDK is not installed, it will return the JRE version. Whatever version is displayed from this command is the version of Java that QZ Tray will use.
  6. Test QZ Tray

    • If there is no desktop shortcut, start QZ Tray by going to Applications > QZ Tray
    • Test functionality by visiting our demo page. Note that this page only works with 2.0 or higher.

Linux

  1. Make sure QZ Tray and other Java dependent software are closed

    • The easiest way to close out of QZ Tray is to go to the System Tray > QZ Tray > Exit
  2. Download and install Java

    Using the Terminal

    If running Ubuntu or Linux Mint, Oracle Java 8 can be installed via the command line by adding a repository from the WEB UPD8 team

    • Add the repository
      sudo add-apt-repository ppa:webupd8team/java
      
    • Update the package manager
      sudo apt-get update
      
    • Install Oracle Java 8
      sudo apt-get install oracle-java8-installer
      

    Installing from Oracle

    • Download the Java offline installer here

    • Move the tarball to the directory you want to install Java, then move to that directory

      sudo cp jre-8u91-linux-x64.tar.gz /usr/bin/java && cd /usr/bin/java
      
    • Unpack the tarball and install java

      tar zxvf jre-8u91-linux-x64.tar.gz
      
  3. Verify the Java Version

    • On the command line

      java -version
      
    • If the wrong version of Java is displayed, you can use this command to switch

      sudo update-alternatives --config java
      

      image

  4. Test QZ Tray

    If there is no desktop shortcut:

    • Search for "QZ Tray" or go to usr/share/applications and find QZ Tray
    • Test functionality by visiting our demo page. Note that this page only works with 2.0 or higher.
Edit this page