Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 17D2917FC0 for ; Thu, 16 Oct 2014 09:48:34 +0000 (UTC) Received: (qmail 17051 invoked by uid 500); 16 Oct 2014 09:48:34 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 17024 invoked by uid 500); 16 Oct 2014 09:48:34 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 17013 invoked by uid 99); 16 Oct 2014 09:48:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2014 09:48:33 +0000 Date: Thu, 16 Oct 2014 09:48:33 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-3288) karaf script doesn't start on Solaris if JAVA_HOME is not set MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-3288?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated KARAF-3288: ---------------------------------------- Fix Version/s: 2.4.1 3.0.3 4.0.0 > karaf script doesn't start on Solaris if JAVA_HOME is not set > ------------------------------------------------------------- > > Key: KARAF-3288 > URL: https://issues.apache.org/jira/browse/KARAF-3288 > Project: Karaf > Issue Type: Bug > Affects Versions: 3.0.1 > Environment: Solaris > Reporter: Kevin Earls > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Minor > Fix For: 4.0.0, 3.0.3, 2.4.1 > > > On Solaris the karat script fails with the error "JVM must be greater tha= n 1.6" if JAVA_HOME is not set. (On 2.4 it also fails but with the message= "exec: a tracked alias for /usr/bin/java: not found"). =20 > This fails because the locateJava() function depends on the output of `ty= pe java` to set JAVA_HOME and determine what version of java it's using. O= n most platforms type java returns something like "java is /path/to/java", = but on solaris it returns "java is a tracked alias for /path/to/java" > The fix just requires a change to the expression used to chop off the lea= ding text. I will submit a pull request for this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)