Ubuntu 23 Set JAVA_HOME java-22-openjdk-amd64

renguoqiang@ubuntulenovo:~/gitee_base/nacos-server-2.3.0$ tail -5 ~/.bashrc
[ -r /home/renguoqiang/.byobu/prompt ] && . /home/renguoqiang/.byobu/prompt   #byobu-prompt#

export JAVA_HOME=/usr/lib/jvm/java-22-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
renguoqiang@ubuntulenovo:~/gitee_base/nacos-server-2.3.0$ source ~/.bashrc

* [Ubuntu 使用 apt 安装 Java 并设置 JAVA\_HOME - 知乎](https://zhuanlan.zhihu.com/p/661108825)
* [How to Set JAVA\_HOME Variable on Ubuntu 22.04 - Linux Genie](https://linuxgenie.net/how-to-set-java_home-variable-on-ubuntu-22-04/)
* [如何在 Ubuntu Linux 中正确地设置 JAVA\_HOME 变量 | Linux 中国-腾讯云开发者社区-腾讯云](https://cloud.tencent.com/developer/article/1897987)

posted @ 2024-01-03 11:39  任国强  阅读(28)  评论(0编辑  收藏  举报