[
https://issues.apache.org/jira/browse/KARAF-3288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14172289#comment-14172289
]
ASF GitHub Bot commented on KARAF-3288:
---------------------------------------
GitHub user kevinearls opened a pull request:
https://github.com/apache/karaf/pull/49
KARAF-3288 Update script to correctly set JAVA_HOME on Solaris
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kevinearls/karaf KARAF-3288
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/karaf/pull/49.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #49
----
commit 72af704dc0ffa5c3540153df9c599b66551c93bf
Author: Kevin Earls <[email protected]>
Date: 2014-10-15T11:56:35Z
KARAF-3288 Update script to correctly set JAVA_HOME on Solaris
----
> 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
> Priority: Minor
>
> On Solaris the karat script fails with the error "JVM must be greater than
> 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").
> This fails because the locateJava() function depends on the output of `type
> java` to set JAVA_HOME and determine what version of java it's using. On
> 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 leading
> text. I will submit a pull request for this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)