[ 
http://jira.codehaus.org/browse/MAPPASM-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brett Porter updated MAPPASM-18:
--------------------------------

    Fix Version/s: 1.0

> shell script fails to start if JAVA_HOME is not set
> ---------------------------------------------------
>
>                 Key: MAPPASM-18
>                 URL: http://jira.codehaus.org/browse/MAPPASM-18
>             Project: Mojo AppAssembler Plugin
>          Issue Type: Bug
>         Environment: Linux, Bash 2.0.5
>            Reporter: Max Berger
>             Fix For: 1.0
>
>
> When JAVA_HOME is not set, from the generated run script, I receive the error 
> message:
> Error: JAVA_HOME is not defined correctly.
>   We cannot execute java
> The reason: The test [ ! -x "$JAVACMD" ] will only work if the absolute path 
> is given in the JAVACMD.
> Possible fixes:
> - when JAVA_HOME is unset, instead of setting:
>     JAVACMD=java
> rather set
>   JAVACMD=`which java`
> alternative: change the test to
> [ ! -x `which $JAVACMD` ]
> I have seen this with version 1.0-alpha-2 and 1.0-20070124.085332-18

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to