You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Aled Sage (JIRA)" <ji...@apache.org> on 2018/10/02 08:20:00 UTC

[jira] [Commented] (BROOKLYN-595) Brooklyn karaf fails with Java 9

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

Aled Sage commented on BROOKLYN-595:
------------------------------------

See the fix in https://github.com/apache/brooklyn-server/pull/1002 (still under review).

However, we don't really care about Java 9 or Java 10 because they are already end-of-life. We do care about Java 11.

> Brooklyn karaf fails with Java 9
> --------------------------------
>
>                 Key: BROOKLYN-595
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-595
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Aled Sage
>            Priority: Major
>
> Running on OS X, Brooklyn karaf fails to start:
> {{./bin/start}} gives no output, exit code 0, but the process isn't running! Tweaking the script to add {{-x}}, I see the last thing it did was:
> {noformat}
> exec /Users/aledsage/repos/apache/brooklyn/brooklyn-dist/karaf/apache-brooklyn/target/assembly/bin/karaf server
> {noformat}
> {{./bin/karaf}} gives the error:
> {noformat}
> karaf: JVM must be greater than 1.8
> {noformat}
> Digging into this further, {{java -version}} gives:
> {noformat}
> java version "9.0.4"
> Java(TM) SE Runtime Environment (build 9.0.4+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
> {noformat}
> Running {{./bin/karaf}} with {{-x}} shows:
> {noformat}
> + detectJVM
> + /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home//bin/java -version
> + grep '^IBM'
> + false
> + JVM_VENDOR=SUN
> + checkJvmVersion
> ++ /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home//bin/java -version
> ++ egrep '"([0-9].[0-9]\..*[0-9]).*"'
> ++ awk '{print substr($3,2,length($3)-2)}'
> ++ awk '{print substr($1, 3, 3)}'
> ++ sed -e 's;\.;;g'
> + VERSION=04
> + '[' x04 = x ']'
> + '[' 04 -lt 80 ']'
> + die 'JVM must be greater than 1.8'
> + warn 'JVM must be greater than 1.8'
> + echo 'karaf: JVM must be greater than 1.8'
> karaf: JVM must be greater than 1.8
> + exit 1
> {noformat}
> This looks very similar to https://jira.opendaylight.org/browse/ODLPARENT-73?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)