Difference between revisions of "HowTos/Working with JRE"

From Scalix Wiki
Jump to: navigation, search
(Common Notes)
(Common Notes)
Line 1: Line 1:
 
=== Common Notes ===
 
=== Common Notes ===
 
* According to Oracle license, scalix can't distribute JRE installation inside installer anymore, so you need to explicitly visit oracle site, download and install JRE
 
* According to Oracle license, scalix can't distribute JRE installation inside installer anymore, so you need to explicitly visit oracle site, download and install JRE
* In scalix v.12.0 JRE 1.5 and above is supported (NOTE: if you plan to use ActiveDirectory or LDAPsync ONLY version 1.5 is currently supported due a known bug with JRE 1.6 and 1.7  [[HowTos/Advanced omldapsync|Advanced omldapsync How-To]]
+
* In scalix v.12.0 JRE 1.5 and above is supported (NOTE: if you plan to use ActiveDirectory or LDAPsync and scalix 12.0 ONLY JRE v. 1.5 is supported due a known bug with JRE 1.6 and 1.7  [[HowTos/Advanced omldapsync|Advanced omldapsync How-To]]
 
* In many systems like centos/rhel/oracle linux openjdk (opensource java implementation) is already included in distributive and can be installed using standard package installation procedure (yum, yast, etc.)
 
* In many systems like centos/rhel/oracle linux openjdk (opensource java implementation) is already included in distributive and can be installed using standard package installation procedure (yum, yast, etc.)
 
* '''we don't recommend using openjdk on production systems''' because it can cause potential slowdown, higher CPU/Memory usage and probably can cause instability and further unexpected errors. but for testing installations, openJDK can be used.
 
* '''we don't recommend using openjdk on production systems''' because it can cause potential slowdown, higher CPU/Memory usage and probably can cause instability and further unexpected errors. but for testing installations, openJDK can be used.

Revision as of 08:03, 22 November 2013

Common Notes

  • According to Oracle license, scalix can't distribute JRE installation inside installer anymore, so you need to explicitly visit oracle site, download and install JRE
  • In scalix v.12.0 JRE 1.5 and above is supported (NOTE: if you plan to use ActiveDirectory or LDAPsync and scalix 12.0 ONLY JRE v. 1.5 is supported due a known bug with JRE 1.6 and 1.7 Advanced omldapsync How-To
  • In many systems like centos/rhel/oracle linux openjdk (opensource java implementation) is already included in distributive and can be installed using standard package installation procedure (yum, yast, etc.)
  • we don't recommend using openjdk on production systems because it can cause potential slowdown, higher CPU/Memory usage and probably can cause instability and further unexpected errors. but for testing installations, openJDK can be used.
  • in scalix v12.0 some scripts still have

How scalix installer determines JRE presence and version

Since v12.0, scalix installer tries to determine available java version in 2 steps

  • it tries to execute "java -version" command. If it fails, installer assumes JRE is not available (even if you downloaded and installed jre from 3rd party location) - see next section
  • it compares command output and tries to parse java version; if it fits installer requirements, java test is passed

How to install JRE

Starting from version 12.0, scalix doesn't try to find available java, it leans on system in this case (assuming "java" command can be executed). In general, there're 2 options

  • if you installed openjdk, "java" command is already available and there won't be any unexpected issues
  • if you downloaded and installed JRE from Oracle site, it's not enough to install it, you need to explicitly tell system what JRE to use. You can use jre configuration guide for centos for more details.