Install and configure Java to be used exclusively by Symantec AntiVirus for Linux

Article:HOWTO36063  |  Created: 2010-11-16  |  Updated: 2015-02-19  |  Article URL http://www.symantec.com/docs/HOWTO36063
Article Type
How To



CAUTION: This guide is unsupported and provided for your convenience only.

This article will guide you in downloading and installing a version of Java that will only be used by Symantec AntiVirus for Linux. This will enable Symantec AntiVirus for Linux to use its own version of Java that can be installed alongside other versions of Java, without causing a negative impact on a computer.

  1. Go to the Java download page.
  2. Download one of the following files depending if you are on a 32-bit or 64-bit (x64) system 
    • Linux (self-extracting file)
    • Linux x64 *
  3. Open a terminal and change to the directory where Java was downloaded (ususally /home/USERNAME/Downloads) 
  4. Mark the file as executable (FILENAME should be similar to jre-6u22-linux-x64.bin or jre-6u22-linux-i586.bin)

    chmod +x FILENAME 
     
  5. Run the file

    ./FILENAME
     
  6. This should result in a new directory that now contains java (similar to jre1.6.0_22) 
  7. Download jce_policy-6.zip.
  8. Extract the JCE policy files:

    unzip jce_policy-6.zip
     
  9. Copy the JCE policy files into the lib/security directory located in the Java directory extracted in the previous steps

    cp jce/*.jar jre1.6.0_22/lib/security/
     
  10. Move the directory containing Java into the /opt/Symantec directory (you may need to have root priviledges to do this)

    mv jre1.6.0_22 /opt/Symantec
     
  11. Edit /etc/Symantec.conf so JAVA_HOME now points to the correct Java directory. Note that the Java binary is located in the bin subdirectory of the previously extracted Java directory

    JAVA_HOME=/opt/Symantec/jre1.6.0_22/bin

Symantec AntiVirus for Linux is now configured to use the Java version installed at /opt/Symantec/jre1.6.0_22. No other software on the system will use this version of Java. If LiveUpdate was previously run before setting up Java, you may need to make corrections in the /etc/liveupdate.conf file.

Note: For Java SE 7, please use Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7 rather than Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6




Article URL http://www.symantec.com/docs/HOWTO36063


Terms of use for this information are found in Legal Notices