You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Heath Kesler (JIRA)" <ji...@apache.org> on 2013/05/10 19:29:21 UTC

[jira] [Updated] (KARAF-1799) JAVA_HOME autodiscovery not working on Windows 7 (karaf.bat)

     [ 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