karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-2921) bin/karaf selecting the wrong Java VM on a computer with Java 8 installed
Date Tue, 22 Apr 2014 06:09:22 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13976424#comment-13976424
] 

Jean-Baptiste Onofré commented on KARAF-2921:
---------------------------------------------

Fixed on master: https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=0cb8c9133cfe59c9087ca9e85e525683b023ba28

> 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
>          Components: karaf-core
>    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, 4.0.0, 3.0.2
>
>
> 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