XWIKI-10810: Use JAVA_HOME if the user has set it instead of searching in the registry
XWIKI-10810: Use JAVA_HOME if the user has set it instead of searching in the registry
Merge pull request #321 from msmeria/XWIKI-10810

XWIKI-10810: Use JAVA_HOME if the user has set it instead of searching in the registry