Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
Deepin 和 Mint 配置 Oracle JDK 为系统默认 [超简单的]
Experiences and Insight
1043
views ·
0
replies ·
To
floor
Go
suxuanhua
deepin
2017-07-20 00:55
Author
本帖最后由 suxuanhua 于 2017-7-19 16:56 编辑
Make JDK system default.
sudo update-alternatives --install "/usr/bin/java" "java" "
/opt/java/jdk1.7.0_25/bin/java"
1
sudo update-alternatives --set java /opt/java/jdk1.7.0_25/bin/java
注释:以上两行代码将
/opt/java/jdk1.7.0_25 换成你 JDK 路径即可
。
Test installed java version.
$ java -version
java version "1.7.0_25" Java(TM) SE Runtime Environment (build 1.7.0_25-b15) Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[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 Ranking
Change
Four agent skills for laptop power, sleep, and honest bug reports
Installing qemu-user breaks deepin
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
sudo update-alternatives --set java /opt/java/jdk1.7.0_25/bin/java
java version "1.7.0_25" Java(TM) SE Runtime Environment (build 1.7.0_25-b15) Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)