[Others] 如何安装openjdk?
Tofloor
poster avatar
stoneganda
deepin
2021-09-19 04:26
Author

需要使用到root权限,谁能给个准确的指导?

deepin是最新的20.2.3社区版本

Reply Favorite View the author
All Replies
Barry-okx
Junior Packager
2021-09-19 05:09
#1

sudo apt install openjdk-8-jdk

Reply View the author
Barry-okx
Junior Packager
2021-09-19 05:13
#2

https://juejin.cn/post/7006665480136032263/   另外  欢迎参考我的 安装deepin 20.2.3 后要做的6件事

Reply View the author
要讲武德
deepin
2021-09-19 06:23
#3
Reply View the author
stoneganda
deepin
2021-09-19 06:43
#4

有没有详细一点指导?

Reply View the author
Hello
deepin
2021-09-19 07:14
#5
stoneganda

有没有详细一点指导?

sudo apt install openjdk-8-jdk

或者

sudo apt install default-jdk

 

都告诉你了,就一行命令,你看楼上啊

Reply View the author
Hello
deepin
2021-09-19 07:14
#6
stoneganda

有没有详细一点指导?

另外sdkman也可以安装jdk

Reply View the author
n2020
deepin
2021-09-21 09:04
#7
stoneganda

有没有详细一点指导?

1. wget https://mirrors.tuna.tsinghua.edu.cn/AdoptOpenJDK/8/jdk/x64/linux/OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz

2. tar -xzvf OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz

3. pwd复制路径

4. sudo vi /etc/profile , 添加环境变量

    export JAVA_HOME=粘贴路径

    export PATH=$PATH::$JAVA_HOME/bin

5. source /etc/profile , 配置生效

6. java -version , 输出即完成

Reply View the author
stoneganda
deepin
2021-10-10 06:10
#8
n2020

1. wget https://mirrors.tuna.tsinghua.edu.cn/AdoptOpenJDK/8/jdk/x64/linux/OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz

2. tar -xzvf OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.tar.gz

3. pwd复制路径

4. sudo vi /etc/profile , 添加环境变量

    export JAVA_HOME=粘贴路径

    export PATH=$PATH::$JAVA_HOME/bin

5. source /etc/profile , 配置生效

6. java -version , 输出即完成

感谢您。 我已经成功安装openjdk17了。使用的是这个指导:

https://blog.csdn.net/weixin_44123547/article/details/104562626

Reply View the author