jdk安装分享
Tofloor
poster avatar
MarioAi
deepin
2019-11-14 01:39
Author
jdk13
下载:
https://www.oracle.com/technetwork/java/javase/downloads/jdk13-downloads-5672538.html
jdk-13.0.1_linux-x64_bin.deb

安装:

配置:
# /etc/profile
# for jdk-13.0.1
export JAVA_HOME=/usr/lib/jvm/jdk-13.0.1
export JRE_HOME=/${JAVA_HOME}
export CLASSPATH=.{JAVA_HOME}/libss{JRE_HOME}/lib
export PATH=${JAVA_HOME}/binPATH


Reply Favorite View the author
All Replies
avatar
qiushao
deepin
2019-11-14 07:46
#1
直接 apt search jdk
然后 sudo apt install  需要安装的版本不就行了
啥配置都不用,
你这搞得这么麻烦干啥
Reply View the author
avatar
zerofancy
deepin
2019-12-28 18:56
#2
https://bbs.deepin.org/post/185117
直接 apt search jdk
然后 sudo apt install  需要安装的版本不就行了
啥配置都不用,

The jdk version installed in this way is too old, maven and VSCode will encounter an error that the main class cannot be found.
Reply View the author
avatar
观摩
deepin
2019-12-28 20:20
#3
岂不知企业开发还是1.8为主流。
服务器端大多都是直接使用 openjdk
Reply View the author
Comments
mariobolo
2020-05-06 07:01
用阿里巴巴的发行版
avatar
阿苗
deepin
2020-10-27 19:40
#4
今天自己安装JDK1.8结果问题出现在配置环境变量的保存上。
按照本地路径修改:/etc/profile文件后,要先按ESC键,然后按2次Z键才能保存。
当前环境为:社区版(1003)
Reply View the author
avatar
oliverwang
deepin
2020-10-27 20:18
#5
https://bbs.deepin.org/post/185117
岂不知企业开发还是1.8为主流。
服务器端大多都是直接使用 openjdk

最新版的vscode的Java插件要求至少11版本
Reply View the author
avatar
Feng Yu
deepin
2020-10-27 21:03
#6
sdkman不香吗?
Reply View the author
avatar
135******12
deepin
2020-10-28 01:16
#7
sudo update-alternatives --install /usr/bin/javac javac /usr/jdk1.8.0_202/bin/javac  1171
sudo update-alternatives --install /usr/bin/java  java /usr/jdk1.8.0_202/bin/java  1171
sudo update-alternatives --install /usr/bin/jar jar /usr/jdk1.8.0_202/bin/jar 1171   
sudo update-alternatives --install /usr/bin/javah javah /usr/jdk1.8.0_202/bin/javah 1171   
sudo update-alternatives --install /usr/bin/javap javap /usr/jdk1.8.0_202/bin/javap 1171
下个jdk的zip版本,改一下路径,运行这几个命令就可以了
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-10-28 01:35
#8
https://bbs.deepin.org/post/185117
The jdk version installed in this way is too old, maven and VSCode will encounter an error that th ...

星火提供了LibrecaJDK的很多版本
JDK 15
spk://store/development/bellsoft-java15-full
14
spk://store/development/bellsoft-java14-full
11
spk://store/development/bellsoft-java11-full
8
spk://store/development/bellsoft-java8-full
Reply View the author