Difference between revisions of "King0770-Notes-Download-JDK"

(New page: {{ WIP }} If you ever see these types of messages from the command line, there maybe a possibility of JDK being corrupted. <code><pre> zmhostname Error occurred during initialization o...)
 
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ WIP }}
+
{{BC|Community Sandbox}}
 +
__FORCETOC__
 +
<div class="col-md-12 ibox-content">
 +
=King Notes Download JDK=
 +
{{KB|{{Unsupported}}|{{ZCS 7.0}}|{{ZCS 6.0}}|}}
 +
{{Archive}}{{WIP}}
  
If you ever see these types of messages from the command line, there maybe a possibility of JDK being corrupted.  
+
If you ever see these types of messages from the command line, there maybe a possibility of JDK being corrupted.<br>
 +
As you can see, running commands like "zmhostname" and/or "zmlocalconfig" will produce the "NoClassDefFoundError" error.<br>
  
 
<code><pre>
 
<code><pre>
Line 16: Line 22:
 
</pre></code>
 
</pre></code>
  
As you can see, running commands like "zmhostname" and/or "zmlocalconfig" will produce the "NoClassDefFoundError" error.
+
=='''To download JDK:'''==
 
 
'''To download JDK:'''
 
  
 
1) Go to http://java.sun.com/products/archive/
 
1) Go to http://java.sun.com/products/archive/
Line 27: Line 31:
  
 
4) On the next page select your platform, select multi-language, and click on the "I agree" license<br>
 
4) On the next page select your platform, select multi-language, and click on the "I agree" license<br>
There's only two options for Linux for dowload:<br>
+
There's only two options for Linux:<br>
 
<code><pre>
 
<code><pre>
 
32 Bit
 
32 Bit
Line 38: Line 42:
 
5) Once you have downloaded the *.bin file, transfer it to the Zimbra machine in the /tmp directory.
 
5) Once you have downloaded the *.bin file, transfer it to the Zimbra machine in the /tmp directory.
  
'''To install JDK:''' (using jdk-1_5_0_17-linux-i586.bin as an example)
+
=='''To install JDK:'''==
 +
(using jdk-1_5_0_17-linux-i586.bin as an example)
  
 
1) zmcontrol stop **run as zimbra**
 
1) zmcontrol stop **run as zimbra**
Line 44: Line 49:
 
2) mv /opt/zimbra/jdk1.5.0_17 /opt/zimbra/jdk1.5.0_17.OLD **run as root**
 
2) mv /opt/zimbra/jdk1.5.0_17 /opt/zimbra/jdk1.5.0_17.OLD **run as root**
  
3) chown 755 /tmp/jdk-1_5_0_17-linux-*.bin **run as root**
+
3) chown 755 /tmp/jdk-1_5_0_17-linux-i586.bin **run as root**
  
 
4) cd /opt/zimbra **run as root**
 
4) cd /opt/zimbra **run as root**
  
5) /tmp/jdk-6u13-linux-i586.bin <br>
+
5) /tmp/jdk-1_5_0_17-linux-i586.bin <br>
'''Note:'''This is basically extract JDK into the /opt/zimbra. IIRC, there is EULA where you'll have to use the space bar to get to the bottom of the EULA to indicate yes or no.
+
'''Note:'''This will basically extract JDK into the /opt/zimbra. IIRC, there is EULA where you'll have to use the space bar to get to the bottom of the EULA to indicate yes or no.
  
6) chown -R zimbra:zimbra jdk1.6.0_13
+
6) chown -R zimbra:zimbra jdk1.5.0_17
  
 
7) Test again with the zmhostname or zmlocalconfig commands.
 
7) Test again with the zmhostname or zmlocalconfig commands.
  
8) zmcontrol start **run as zimbra**
+
8) zmcontrol start **run as zimbra**<br>
 +
 
 +
My rationale for this page was that it took me a long time to figure out where to download the proper JDK file. Hopefully this will help those who are in need of installing JDK for linux, and are not quite savvy with Sun's website.<br>
 +
 
 +
 
 +
=='''Misc'''==
 +
There are certain conditions where Zimbra '''might''' recommend JDK 6, as it has particularly good debugging efficiency and tools.<br>
 +
However, Zimbra '''must''' request and recommend that production sites use the currently-distributed/included JDK 1.5u17 under normal conditions. A known reason is due to this JDK bug:<br>
 +
 
 +
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6403933
 +
 
 +
 
  
 +
Special thanks to Thom O'Connor for the pointers!<br>
  
My rationale for this page was that it took me a long time to figure out where to download the proper JDK file. Hopefully this will help those who are in need of installing JDK for linux, and are not quite savvy with Sun's website.
+
{{Article Footer|Zimbra Collaboration 8.0, 7.0|04/16/2014}}
 +
[[Category:Community Sandbox]]
 +
[[Category:JDK]]

Latest revision as of 09:56, 12 July 2015

King Notes Download JDK

   KB 2882        Last updated on 2015-07-12  




0.00
(0 votes)


If you ever see these types of messages from the command line, there maybe a possibility of JDK being corrupted.
As you can see, running commands like "zmhostname" and/or "zmlocalconfig" will produce the "NoClassDefFoundError" error.


zmhostname
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object


/opt/zimbra/bin/zmlocalconfig -q -m export
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

To download JDK:

1) Go to http://java.sun.com/products/archive/

2) Pick "JDK/JRE - 5.0" then "5.0 Update 17", then click "Go"

3) On the next page click on the link that displays "Download JDK"

4) On the next page select your platform, select multi-language, and click on the "I agree" license
There's only two options for Linux:

32 Bit
jdk-1_5_0_17-linux-i586.bin

64 Bit
jdk-1_5_0_17-linux-amd64.bin

5) Once you have downloaded the *.bin file, transfer it to the Zimbra machine in the /tmp directory.

To install JDK:

(using jdk-1_5_0_17-linux-i586.bin as an example)

1) zmcontrol stop **run as zimbra**

2) mv /opt/zimbra/jdk1.5.0_17 /opt/zimbra/jdk1.5.0_17.OLD **run as root**

3) chown 755 /tmp/jdk-1_5_0_17-linux-i586.bin **run as root**

4) cd /opt/zimbra **run as root**

5) /tmp/jdk-1_5_0_17-linux-i586.bin
Note:This will basically extract JDK into the /opt/zimbra. IIRC, there is EULA where you'll have to use the space bar to get to the bottom of the EULA to indicate yes or no.

6) chown -R zimbra:zimbra jdk1.5.0_17

7) Test again with the zmhostname or zmlocalconfig commands.

8) zmcontrol start **run as zimbra**

My rationale for this page was that it took me a long time to figure out where to download the proper JDK file. Hopefully this will help those who are in need of installing JDK for linux, and are not quite savvy with Sun's website.


Misc

There are certain conditions where Zimbra might recommend JDK 6, as it has particularly good debugging efficiency and tools.
However, Zimbra must request and recommend that production sites use the currently-distributed/included JDK 1.5u17 under normal conditions. A known reason is due to this JDK bug:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6403933


Special thanks to Thom O'Connor for the pointers!

Verified Against: Zimbra Collaboration 8.0, 7.0 Date Created: 04/16/2014
Article ID: https://wiki.zimbra.com/index.php?title=King0770-Notes-Download-JDK Date Modified: 2015-07-12



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