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 9948DF71A for ; Fri, 10 May 2013 17:29:22 +0000 (UTC) Received: (qmail 55100 invoked by uid 500); 10 May 2013 17:29:22 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 54893 invoked by uid 500); 10 May 2013 17:29:22 -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 54842 invoked by uid 99); 10 May 2013 17:29:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 17:29:22 +0000 Date: Fri, 10 May 2013 17:29:21 +0000 (UTC) From: "Heath Kesler (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-1799) JAVA_HOME autodiscovery not working on Windows 7 (karaf.bat) 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-1799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Heath Kesler updated KARAF-1799: -------------------------------- Attachment: karaf-2.2.12_1799.diff added logic that will check both the JRE and JDK registry entries for the JAVA_HOME if it is not already set. I tested this on windows 7 and it works. I would like some one else to review it since I do not have a lot of windows scripting experience. > JAVA_HOME autodiscovery not working on Windows 7 (karaf.bat) > ------------------------------------------------------------ > > Key: KARAF-1799 > URL: https://issues.apache.org/jira/browse/KARAF-1799 > Project: Karaf > Issue Type: Bug > Components: karaf-os-integration > Affects Versions: 2.2.9 > Environment: Windows 7 Professional, JDK 1.6.0_35, JDK 1.7.0_07, jre6, jre7 > Reporter: Raphael Majeed > Attachments: karaf-2.2.12_1799.diff > > > When running karaf.bat without setting JAVA_HOME, karaf.bat tries to determine JAVA_HOME automatically. > The following happens on Windows 7: > 1. The built in windows security manager asks for permission to allow regedit to access the registry twice. > 2. karaf.bat exits with message "Unable to retrieve JAVA_HOME" -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira