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 E50641094A for ; Sat, 9 Nov 2013 20:42:17 +0000 (UTC) Received: (qmail 16248 invoked by uid 500); 9 Nov 2013 20:42:17 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 16173 invoked by uid 500); 9 Nov 2013 20:42:17 -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 16149 invoked by uid 99); 9 Nov 2013 20:42:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Nov 2013 20:42:17 +0000 Date: Sat, 9 Nov 2013 20:42:17 +0000 (UTC) From: "Achim Nierbeck (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-2561) When starting karaf under JDK 1.8 Early Access, karaf will not start MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-2561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Achim Nierbeck updated KARAF-2561: ---------------------------------- Fix Version/s: 3.0.0 > When starting karaf under JDK 1.8 Early Access, karaf will not start > -------------------------------------------------------------------- > > Key: KARAF-2561 > URL: https://issues.apache.org/jira/browse/KARAF-2561 > Project: Karaf > Issue Type: Bug > Components: karaf-core > Affects Versions: 3.0.0.RC1 > Environment: ARM Linux > Reporter: Steven Whyte > Fix For: 3.0.0 > > > When starting karaf the checkJvmVersion() function in bin/karaf fails looking at the java version due to the early access has 1.8.0-ea and fails the egrep expression : > VERSION=`$JAVA -version 2>&1 | 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'`. > Changing the statement to the following fixes the issue: > VERSION=`$JAVA -version 2>&1 | egrep '"([0-9].[0-9]\..*[0-9ea])"' | awk '{print substr($3,2,length($3)-2)}' | awk '{print substr($1, 3, 3)}' | sed -e 's;\.;;g'` -- This message was sent by Atlassian JIRA (v6.1#6144)