怎么装java7啊 无法定位
Tofloor
poster avatar
hollow
deepin
2016-01-04 02:30
Author
晕啊 help 是不是命令错了

Reply Favorite View the author
All Replies
joyli
deepin
2016-01-04 02:48
#1
你试试看这个命令行不行 sudo apt-get install openjdk-8-jdk -y
Reply View the author
stronghill
deepin
2016-01-04 02:54
#2
我都是直接从oracle网站下载jdk,比如jdk-8u25-linux-x64.tar.gz,解压后,设置环境变量就行,但这一版系统,我在.profile中设置好环境变量,重启不生效,执行source  .profile后生效。难道非得在profile。d中设置?登录时不自动执行.profile么?
Reply View the author
stronghill
deepin
2016-01-04 02:58
#3
本帖最后由 stronghill 于 2016-1-3 18:59 编辑

只要设置了JAVA_HOME和PATH两个环境变量就行
  1. export  JAVA_HOME=/home/jdk/jdk1.8.0_25
  2. export PATH=$JAVA_HOME/bin:$PATH
Copy the Code

Reply View the author
macaiyun0629
deepin
2016-01-04 03:14
#4
我的没问题,试试用apper安装看看吧,我有很多软件用apper安装的
Reply View the author
hollow
deepin
2016-01-04 03:21
#5
https://bbs.deepin.org/post/35335
只要设置了JAVA_HOME和PATH两个环境变量就行

很多情况下是由软件自己检测java环境 自己在终端里面弄的 没用啊
Reply View the author
stronghill
deepin
2016-01-04 03:52
#6
哪些软件不行?
eclipse,tomcat,weblogic,sqldeveloper都是可以的,
Reply View the author
p091001
deepin
2016-01-04 04:42
#7
> sudo apt-get install openjdk-7-jdk
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
openjdk-7-jdk is already the newest version (7u91-2.6.3-3).
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

deepin官方源,没问题啊
Reply View the author
deepin4king
deepin
2016-01-04 05:37
#8
楼主试试先update一下。。。
Reply View the author
jungle
deepin
2016-01-04 05:38
#9
https://bbs.deepin.org/post/35335
我都是直接从oracle网站下载jdk,比如jdk-8u25-linux-x64.tar.gz,解压后,设置环境变量就行,但这一版系统 ...

对啊  我的也是  你知道怎么回事吗?
Reply View the author
milktea
deepin
2016-01-10 05:42
#10
我用zsh的,环境变量在.zshrc中,mac下只要source一下就可以了,但在深度没用啊~ 为毛?
Reply View the author
177******49
deepin
2016-01-11 01:51
#11
sudo sh -c 'echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list
sudo sh -c 'echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update
sudo apt-get install oracle-java8-installer

我是菜鸟,这样装的java8,不知道有用吗
Reply View the author
zhang12345shun
deepin
2016-01-17 09:09
#12
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:41
#13
参考官网:
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