[
https://issues.apache.org/jira/browse/KARAF-2922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Riccitelli closed KARAF-2922.
-----------------------------------
Resolution: Duplicate
For some reasons the issue has been created twice, this is a duplicate of
KARAF-2921
> bin/karaf selecting the wrong Java VM on a computer with Java 8 installed
> -------------------------------------------------------------------------
>
> Key: KARAF-2922
> URL: https://issues.apache.org/jira/browse/KARAF-2922
> Project: Karaf
> Issue Type: Improvement
> Affects Versions: 3.0.1
> Environment: Mac OS X with Java 8 and Java 7 installed
> Reporter: David Riccitelli
>
> 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)