Bug 1459769

Summary: [GSS](6.4.z) On Windows, when running standalone/Domain with the JAVA_HOME environment variable set (but pointing to an empty directory), JBoss EAP fails to start and does not give an error message.
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Durgesh Anaokar <danaokar>
Component: Scripts and CommandsAssignee: Durgesh Anaokar <danaokar>
Status: CLOSED CURRENTRELEASE QA Contact: Jiří Bílek <jbilek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.15CC: bmaxwell, bparry, fgavrilo, fnasser, jbilek, pgier, pkremens, rstancel, tcerar, vdadhich
Target Milestone: CR1   
Target Release: EAP 6.4.17   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-06 13:32:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1450092    

Description Durgesh Anaokar 2017-06-08 07:11:12 UTC
Description of problem:

On Windows, when running standalone.bat with the JAVA_HOME environment variable set (but pointing to an empty directory), JBoss EAP fails to start and does not give an error message.

Version-Release number of selected component (if applicable):


How reproducible:
every time in windows environment.

Steps to Reproduce:
1. Set the JAVA_HOME to a valid but empty directory on the system 
2. run standalone.bat/domain.bat.

Actual results:
EAP will stop without giving any warning message

Expected results:
A warning about the java.exe should come in logs

Additional info:
Add additional checks in the standalone.conf/domain.bat to verify that %JAVA_HOME%\bin\java exists and warn if it does not.

Comment 4 Jiří Bílek 2017-08-03 15:32:43 UTC
Verified with EAP 6.4.17.CP.CR3

Comment 5 Petr Penicka 2017-09-06 13:32:01 UTC
Released on 2017-09-05 as part of the EAP 6.4.17 release.