Portál AbcLinuxu, 11. května 2025 04:40
Řešení dotazu:
Ako uzivatel, ktory bude spustat JAVU:
vi ~/.bash_profile
export JAVA_HOME=/usr/java/jdkX_XXXX/bin/java <=cesta, kde mas nainstalovanu JAVU
export PATH=$PATH:/usr/java/jdkXXXXXXX/bin
a potom uz len
source ~/.bash_profile
alebo
. ~/.bash_profile
When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable.
env
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.