[
https://issues.apache.org/jira/browse/KARAF-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré reassigned KARAF-2921:
-------------------------------------------
Assignee: Jean-Baptiste Onofré
> bin/karaf selecting the wrong Java VM on a computer with Java 8 installed
> -------------------------------------------------------------------------
>
> Key: KARAF-2921
> URL: https://issues.apache.org/jira/browse/KARAF-2921
> Project: Karaf
> Issue Type: Improvement
> Affects Versions: 3.0.1
> Environment: Mac OS X with Java 8 and Java 7 installed
> Reporter: David Riccitelli
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.4.0, 3.0.2, 2.3.6
>
>
> I have a Mac OS X with both Java 8 and Java 7 installed.
> If I run *bin/karaf*, the script selects the Java 8 VM and things do not work
> well.
> I made a small change to line 198 of the *bin/karaf* script, from:
> {code}
> JAVA_HOME="$(/usr/libexec/java_home)"
> {code}
> to:
> {code}
> JAVA_HOME="$(/usr/libexec/java_home -v 1.7)"
> {code}
> This way the script selects the Java 7 VM.
> May I suggest to update the script in the repo as well?
> Thanks!
--
This message was sent by Atlassian JIRA
(v6.2#6252)