[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: no JAVA_HOME in the path



Thanks!
The problem is solved.

On 2022-08-23 9:40 a.m., Roberto C. Sánchez wrote:
On Tue, Aug 23, 2022 at 09:21:38AM -0400, Amn wrote:
    When I type echo $JAVA_HOME, Debian 11's Konsole displays ... nothing,
    'echo $PATH' reports -
    /usr/local/[1]bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin:libtool:
    /usr/bin/libtool /usr/share/libtool /usr/share/man/man1/libtool.1.gz -
    However if I type, 'java --version' I get -
    /usr/local/[2]bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin:libtool:
    /usr/bin/libtool /usr/share/libtool /usr/share/man/man1/libtool.1.gz -,
    which is correct.
    Where is $JAVA_HOME set or how do I add it to the path permanently?

You have to set it yourself.

Options include /etc/bashrc, /etc/profile, /etc/profile.d,
/etc/environment, /etc/environment.d, and possibly others, for setting
it system-wide, and their per-user counterparts in $HOME for setting it
on a per-user basis.

Regards,

-Roberto



Reply to: