Bug 901242 (JBPAPP6-1692)

Summary: Batch scripts should show some error message when we set JAVA_HOME to nonexisting folder.
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: Scripts and CommandsAssignee: Brian Stansberry <brian.stansberry>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.0.1CC: pkremens
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBPAPP6-1692
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Windows
Last Closed: 2013-07-05 13:20:20 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Kremensky 2012-12-05 14:21:02 UTC
project_key: JBPAPP6

steps to reproduce:
...
{noformat}jboss-eap-6.0\bin>set JAVA_HOME=c:\dummy
jboss-eap-6.0\bin>standalone.bat
Calling "W:\tmp\pk\jboss-eap-6.0\bin\standalone.conf.bat"

jboss-eap-6.0\bin>{noformat}
...

batch script will end on this line (standalone.bat)
l:73   "%JAVA%" -client -version 2>&1 | findstr /I /C:"Client VM" > nul

On linux we get at least error message:
./standalone.sh: line 178: /home/dummy/bin/java: No such file or directory

Comment 1 Permaine Cheung 2013-02-22 13:55:32 UTC
Brian, can you please look into this? Thanks!

Comment 2 Brian Stansberry 2013-03-02 01:43:46 UTC
Dev can devote some time to fixing this in 6.1 if it's important to PM.

Comment 3 Brian Stansberry 2013-07-05 13:20:20 UTC

*** This bug has been marked as a duplicate of bug 978788 ***