Upgrading JDK: Difference between revisions

No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Article Infobox|{{JDK}} {{admin}}||{{ZCS 8.0}} {{ZCS 7.0}} {{ZCS 6.0}} {{ZCS 5.0}}|}}==Upgrading JDK==
{{BC|Community Sandbox}}
__FORCETOC__
<div class="col-md-12 ibox-content">
=Upgrading JDK=
{{KB|{{Unsupported}}|{{ZCS 7.0}}|{{ZCS 6.0}}|}}
{{WIP}}


= Manually upgrading Java JDK with ZCS =
= Manually upgrading Java JDK with ZCS =
Line 7: Line 12:
0. Download the correct version of the JDK for your version of Zimbra ZCS:
0. Download the correct version of the JDK for your version of Zimbra ZCS:


* ZCS8 - Java SE Development Kit (JDK) 7
* ZCS8: Java SE Development Kit (JDK) 7
* ZCS7 - Java SE Development Kit (JDK) 1.6
* ZCS7: Java SE Development Kit (JDK) 1.6
* ZCS6 - Java SE Development Kit (JDK) 1.6
* ZCS6: Java SE Development Kit (JDK) 1.6
* ZCS5 - Java SE Development Kit (JDK) 1.6
* ZCS5: Java SE Development Kit (JDK) 1.6


== Manual Install Instructions (using JDK 1.6 as an example, for ZCS7) ==
== Manual Install Instructions (using JDK 1.6 as an example, for ZCS7) ==
Line 16: Line 21:
=== 1. Download jdk1.6 (latest) ===
=== 1. Download jdk1.6 (latest) ===


Java SE Development Kit: [http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html]  
Java SE Development Kit: [http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html]


=== 2. Download appropriate version ===
=== 2. Download appropriate version ===
Line 42: Line 47:


=== 4. Move to /opt/zimbra ===
=== 4. Move to /opt/zimbra ===
<pre>
(as root)
(as root)
# mv -i jdk1.6.0_45 /opt/zimbra/
# mv -i jdk1.6.0_45 /opt/zimbra/
</pre>


===5. Copy cacerts file from existing Java setup ===
===5. Copy cacerts file from existing Java setup ===


<pre>
# cp /opt/zimbra/java/jre/lib/security/cacerts /opt/zimbra/jdk1.6.0_45/jre/lib/security #replace the existing file
# cp /opt/zimbra/java/jre/lib/security/cacerts /opt/zimbra/jdk1.6.0_45/jre/lib/security #replace the existing file
# chown zimbra:zimbra /opt/zimbra/jdk1.6.0_45/jre/lib/security/cacerts
# chown zimbra:zimbra /opt/zimbra/jdk1.6.0_45/jre/lib/security/cacerts
</pre>


=== 6. Remove and replace the symlink ===
=== 6. Remove and replace the symlink ===


<pre>
# cd /opt/zimbra
# cd /opt/zimbra
# rm java
# rm java
# ln -s /opt/zimbra/jdk1.6.0_45 java
# ln -s /opt/zimbra/jdk1.6.0_45 java
</pre>


=== 7. Restart the java processes ===
=== 7. Restart the java processes ===


<pre>
# su - zimbra
# su - zimbra
$ zmmailboxdctl restart
$ zmmailboxdctl restart
$ zmconfigdctl restart
$ zmconfigdctl restart
</pre>


=== 8. Rollback Plan ===
=== 8. Rollback Plan ===

Latest revision as of 11:23, 13 July 2015

Upgrading JDK

   KB 20703        Last updated on 2015-07-13  




0.00
(0 votes)


Manually upgrading Java JDK with ZCS

For security and performance reasons, it would be a good idea for customers running older versions of ZCS to manually upgrade their Java JDK version. The following steps provide the instructions on doing this - it is a low-risk activity with an easy method to rollback to the current JDK release - both versions remain on the server.

0. Download the correct version of the JDK for your version of Zimbra ZCS:

  • ZCS8: Java SE Development Kit (JDK) 7
  • ZCS7: Java SE Development Kit (JDK) 1.6
  • ZCS6: Java SE Development Kit (JDK) 1.6
  • ZCS5: Java SE Development Kit (JDK) 1.6

Manual Install Instructions (using JDK 1.6 as an example, for ZCS7)

1. Download jdk1.6 (latest)

Java SE Development Kit: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html

2. Download appropriate version

Use .bin version (not rpm.bin), x64 or x86 as appropriate for your OS install.

3. Move download to mailstore(s) into /var/tmp, open binary

# chmod 755 /var/tmp/jdk-6u45-linux-x64.bin
# ./jdk-6u45-linux-x64.bin
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
   creating: jdk1.6.0_45/
   creating: jdk1.6.0_45/db/
   creating: jdk1.6.0_45/db/bin/
  inflating: jdk1.6.0_45/db/bin/ij  
<snip>
Creating jdk1.6.0_45/jre/lib/javaws.jar
Creating jdk1.6.0_45/jre/lib/deploy.jar
Done.

4. Move to /opt/zimbra

(as root)
# mv -i jdk1.6.0_45 /opt/zimbra/

5. Copy cacerts file from existing Java setup

# cp /opt/zimbra/java/jre/lib/security/cacerts /opt/zimbra/jdk1.6.0_45/jre/lib/security #replace the existing file
# chown zimbra:zimbra /opt/zimbra/jdk1.6.0_45/jre/lib/security/cacerts

6. Remove and replace the symlink

# cd /opt/zimbra
# rm java
# ln -s /opt/zimbra/jdk1.6.0_45 java

7. Restart the java processes

# su - zimbra
$ zmmailboxdctl restart
$ zmconfigdctl restart

8. Rollback Plan

Leave the old java version intact just in case. Rolling back is just a matter of altering the symlink for /opt/zimbra/java, and restarting the processes again.


Verified Against: ZCS 8.0 ZCS 7.0 ZCS 6.0 ZCS 5.0 Date Created: 12/17/2013
Article ID: https://wiki.zimbra.com/index.php?title=Upgrading_JDK Date Modified: 2015-07-13



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search