Markus Schönhaber ubuntu-users at
Fri Aug 17 15:39:50 UTC 2012

17.08.2012 17:14, Colin Law:

> On 17 August 2012 10:14, Thufir <hawat.thufir at> wrote:
>> What's the deal, haven't I set JAVA_HOME correctly?
>> thufir at dur:~$
>> thufir at dur:~$ sudo Desktop/james-2.3.2/bin/
>> ERROR: JAVA_HOME not found in your environment.
>> Please, set the JAVA_HOME variable in your environment to match the
>> location of the Java Virtual Machine you want to use.
>> thufir at dur:~$
>> thufir at dur:~$ echo $JAVA_HOME
> Try sudo echo $JAVA_HOME

That will show the same as
since bash will apply variable expansion before it calls sudo.


More information about the ubuntu-users mailing list