[
https://issues.apache.org/jira/browse/CLOUDSTACK-7676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14171215#comment-14171215
]
Animesh Chaturvedi commented on CLOUDSTACK-7676:
------------------------------------------------
Rayees I think you are already working on this.
> Usage server failed to start if default java version is 1.6
> -----------------------------------------------------------
>
> Key: CLOUDSTACK-7676
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7676
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Install and Setup
> Affects Versions: 4.5.0
> Reporter: Rayees Namathponnan
> Assignee: Rayees Namathponnan
> Priority: Critical
> Fix For: 4.5.0
>
>
> Steps to reproduce
> Install usage server on RHEL 6.3 machine
> check default. java version
> start usage server
> Result
> If default java versionis java 1.6, then management serer will fails to start
> Solution
> While starting usage server, we need to check java 1.7 exist or not, if exist
> then we need to start usage server with java 1.7
> #The first existing directory is used for JAVA_HOME (if JAVA_HOME is not
> defined in $DEFAULT)
> if [[ ! -d "$JAVA_HOME" && -d /usr/lib/jvm/jre-1.7.0 ]]; then
> export JAVA_HOME=/usr/lib/jvm/jre-1.7.0
> PATH=$JAVA_HOME/bin:$PATH
> fi
> # use $JAVA_HOME if defined
> if [ -n "$JAVA_HOME" ] ; then
> return
> fi
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)