0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

debianで環境変数JAVA_HOMEを設定する

Last updated at Posted at 2021-04-19

インストール後

パスを通す

$ cat >> ~/.bashrc <<'EOF'
# set JAVA_HOME adn append PATH

JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
EOF

適用

source ~/.bashrc

確認

echo $JAVA_HOME
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?