[ https://issues.apache.org/jira/browse/BROOKLYN-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16523452#comment-16523452 ]
Aled Sage commented on BROOKLYN-595: ------------------------------------ I think this is fixed in karaf 4.2 (we are using karaf 4.1.2 in Brooklyn 0.12.0). It fixes https://issues.apache.org/jira/browse/KARAF-5641, which sounds related. The same fixes are in 4.1.5. See karaf 4.2.0 release notes at https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12342076 (linked to from http://karaf.apache.org/download.html). > 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)