JAVA_HOME
Markus Schönhaber
ubuntu-users at list-post.mks-mail.de
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 gmail.com> 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/run.sh
>> 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
Why?
That will show the same as
echo $JAVA_HOME
since bash will apply variable expansion before it calls sudo.
--
Regards
mks
More information about the ubuntu-users
mailing list