Hi Brett!

Brett Porter wrote:
> looks like it should work.
> Here is the segment of the script:
>...
> Can you run that on its own and check if it also fails? 
> If so, run it with set -x first and post the output.

$ mavenshort (name of the script with these lines and #!/bin/sh -x)
+ '[' -z '' ']'
+ '[' -n '' ']'
+ JAVACMD=java
+ '[' '!' -x java ']'
+ echo 'Error: JAVA_HOME is not defined correctly.'
Error: JAVA_HOME is not defined correctly.
+ echo '  We cannot execute java'
  We cannot execute java
+ exit


I read this like JAVA_HOME is not set (but it is, as I said before), and so
we are unable to execute maven.

Hrmmm, if I place absolute settings for JAVA_HOME and JAVACMD (below the
if-fi block with 'if [ -z "$JAVACMD" ] ; then' (line 120)) maven works.

I've defined JAVA_HOME in /etc/bash.bashrc, within the actual shell I can
see it with set:
$ set | grep JAVA_HOME
JAVA_HOME=/usr/lib/j2sdk1.5-sun.

I'm able to work with the workaround above, but this can't be the final
solution.

Thanks!
Greetings, Michael.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to