要怎么装上Oracle的Java?
Tofloor
poster avatar
rogerwu0321
deepin
2015-12-29 06:04
Author
没有apt-add-repository这个指令
加不了源
装不了

Reply Favorite View the author
All Replies
andyscream
deepin
2015-12-29 08:47
#1
sudo apt-get install openjdk,然后用鼠标选中openjdk这几个字符,接着按tab键,你就能看到软件源的jdk了,找java也类似吧,我是开发者,我直接装jdk了
Reply View the author
andyscream
deepin
2015-12-29 08:48
#2
你说的是找jre吧,别搜java关键字了,直接搜openjdk,装jdk
Reply View the author
Feng Yu
deepin
2015-12-29 17:34
#3
直接用openjdk就行了。连docker官方维护的image都是openjdk
Reply View the author
浅浅
deepin
2015-12-29 17:50
#4
我是下载Oracle格式为tar.gz的Java,然后解压,然后gedit /etc/profile,加入java路径,然后source /etc/profile,Java就生效了
Reply View the author
ideepinos
deepin
2015-12-29 18:12
#5
Reply View the author
zhang12345shun
deepin
2016-01-17 09:11
#6
1. 下载Sun版JDK压缩包(.tar.gz),选择其中的32/64位Linux版本。
2. 将其解压缩:sudo tar -zxvf ~/Downloads/jdk-8u45-linux-i586.tar.gz -C /usr/lib 中参数-C后面的路径是解压缩的目标路径。
3.sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_66/bin/java 1000
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_66/bin/javac 1000
Reply View the author
zhang12345shun
deepin
2016-01-17 09:42
#7
参考官网:
Starting with version 8u40, the JDK installation is integrated with the alternatives framework and after installation, the alternatives framework is updated to reflect the binaries from the recently installed JDK. Java commands such as java, javac, javadoc, and javap can be invoked from the command line.
Reply View the author