Bug 901242 (JBPAPP6-1692) - Batch scripts should show some error message when we set JAVA_HOME to nonexisting folder.
Summary: Batch scripts should show some error message when we set JAVA_HOME to nonexis...
Keywords:
Status: CLOSED DUPLICATE of bug 978788
Alias: JBPAPP6-1692
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Scripts and Commands
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Brian Stansberry
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBP...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-05 14:21 UTC by Petr Kremensky
Modified: 2013-07-05 13:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Windows
Last Closed: 2013-07-05 13:20:20 UTC
Type: Feature Request
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker AS7-6662 0 Minor Resolved Batch scripts should show some error message when we set JAVA_HOME to nonexisting folder. 2013-07-23 06:42:54 UTC
Red Hat Issue Tracker JBPAPP6-1692 0 Major Closed Batch scripts should show some error message when we set JAVA_HOME to nonexisting folder. 2013-07-23 06:42:54 UTC

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 ***


Note You need to log in before you can comment on or make changes to this bug.