[
https://issues.apache.org/jira/browse/CLOUDSTACK-9710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15851788#comment-15851788
]
ASF GitHub Bot commented on CLOUDSTACK-9710:
--------------------------------------------
Github user swill commented on the issue:
https://github.com/apache/cloudstack/pull/1888
I found the issue. `jenv` was not setting the `JAVA_HOME` correctly, so
the following logic in `/etc/cloudstack/management/classpath.conf` was getting
hit.
```
if ([ -z "$JAVA_HOME" ] || [ ! -d "$JAVA_HOME" ]) && [ -d
/usr/lib/jvm/jre-1.7.0 ]; then
export JAVA_HOME=/usr/lib/jvm/jre-1.7.0
fi
```
I modified this section to be the following and everything is working now.
```
if ([ -z "$JAVA_HOME" ] || [ ! -d "$JAVA_HOME" ]) && [ -d
/usr/lib/jvm/jre-1.8.0 ]; then
export JAVA_HOME=/usr/lib/jvm/jre-1.8.0
fi
```
> Switch to JDK 1.8
> -----------------
>
> Key: CLOUDSTACK-9710
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9710
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: Rohit Yadav
> Assignee: Rohit Yadav
> Fix For: Future, 4.10.0.0
>
>
> Switch to using JDK1.8 by default for building and running CloudStack.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)