JAVA_HOME
Tofloor
poster avatar
aurthur
deepin
2016-01-18 20:25
Author
安装了Deepin15,需要配置JAVA_HOME环境。在文件 /etc/profile中添加
export JAVA_HOME=/usr/share/java/jdk
export PATH=$JAVA_HOME/binPATH
然后再执行. /etc/profile或者source /etc/profile之后只能在当前终端窗口有效,重启后也不能自动加载。每次都在执行 /etc/profile或者source /etc/profile才行。
请都大神是哪里出了问题,导致在/etc/profile中添加的不能自动加载
Reply Favorite View the author
All Replies
avatar
rookie5566
deepin
2016-01-18 20:44
#1
Reply View the author
avatar
aurthur
deepin
2016-01-18 21:10
#2
https://bbs.deepin.org/post/36282
参考:http://bbs.deepin.org/post/36237#

谢谢,还真的是到这里,deepin干嘛要搞点特殊呢?在Ubuntu中在/etc/profile中是有效的。
Reply View the author
avatar
rookie5566
deepin
2016-01-18 21:40
#3
https://bbs.deepin.org/post/36282
谢谢,还真的是到这里,deepin干嘛要搞点特殊呢?在Ubuntu中在/etc/profile中是有效的。 ...

然而这样配置也只是在终端生效, 当桌面双击应用时,同样没有效果。 比如eclipse、idea,在终端启动是正常的,但是通过桌面启动会找不到jre。可以在启动脚本上同样添加一次。目前先用着,如果以后这样的问题太多的话,再考虑转向其它的linux版本。
Reply View the author
avatar
aurthur
deepin
2016-01-18 22:47
#4
https://bbs.deepin.org/post/36282
然而这样配置也只是在终端生效, 当桌面双击应用时,同样没有效果。 比如eclipse、idea,在终端启动是正 ...

deepin14我就是设置在/etc/profile里的。
Reply View the author
avatar
yoqu
deepin
2016-01-19 00:19
#5
在用户目录~/.bashrc中设置环境变量肯定生效
Reply View the author
avatar
aurthur
deepin
2016-01-19 00:22
#6
https://bbs.deepin.org/post/36282
在用户目录~/.bashrc中设置环境变量肯定生效

我想设置全局的
Reply View the author
avatar
159******79
deepin
2016-01-21 00:05
#7
深度应用商店有个openjdk,直接安装就可以用了
Reply View the author
avatar
aurthur
deepin
2016-01-21 06:37
#8
https://bbs.deepin.org/post/36282
深度应用商店有个openjdk,直接安装就可以用了

到哪里都是用Oracle JDK,这个openJdk看着就怪怪的,心里不爽
Reply View the author
Comments
linux0208
2016-01-21 21:37
谷歌的android N要转到openjdk上了
avatar
yoqu
deepin
2016-01-21 18:52
#9
https://bbs.deepin.org/post/36282
我想设置全局的

没必要。。。
难道要搞开发要随时切换账号?
Reply View the author