karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Riccitelli (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-2922) bin/karaf selecting the wrong Java VM on a computer with Java 8 installed
Date Fri, 18 Apr 2014 12:57:14 GMT
David Riccitelli created KARAF-2922:
---------------------------------------

             Summary: 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)

Mime
View raw message