Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
安装jdk失败
Apps Section
1021
views ·
1
replies ·
To
floor
Go
180******66
deepin
2017-09-08 05:03
Author
我下载了jdk1.8用来替换openjdk但是使用命令
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_144/bin/java 300
Copy the Code
但是在使用
java -version
Copy the Code
后还是显示
$ java -version
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=gasp
openjdk version "1.8.0_141"
OpenJDK Runtime Environment (build 1.8.0_141-8u141-b15-3-b15)
OpenJDK 64-Bit Server VM (build 25.141-b15, mixed mode)
Copy the Code
但是
javac -version
Copy the Code
结果正确
$ javac -version
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=gasp
javac 1.8.0_144
Copy the Code
想问问又没办法解决,前两天问的问题感谢大家的帮助
Reply
Like 0
Favorite
View the author
All Replies
180******66
deepin
2017-09-08 05:13
#1
解决了,发完贴突然想起来可以
sudo update-alternatives --config java
Copy the Code
选一下就好了,我可能之前用ubuntu用傻了
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More