[
https://issues.apache.org/jira/browse/KARAF-1799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452868#comment-13452868
]
Guillaume Nodet commented on KARAF-1799:
----------------------------------------
I would suggest to enhance the batch to also search for
"HKLM\Software\JavaSoft\Java Development Kit" in case "Java Runtime
Environment" keys do not exist.
I just installed a JDK on a bare windows and had the above configuration.
> 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
>
> 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