Deepin2015.1.1 安装系统更新后java环境变量需要重新配置
Tofloor
poster avatar
临之
deepin
2016-04-01 18:56
Author
版本:
Deepin2015.1.1

现象:
安装最新的系统更新(3月31日收到的更新提示)后,jar文件无法正常启动gui界面。

解决方案:
经排查,是因为/etc/profile中配置的java_home等无效,导致调用的java变为自带的jdk
sudo source /etc/profile

Reply Favorite View the author
All Replies
avatar
cxbii
deepin
2016-04-06 20:02
#1
已经上报
Reply View the author
avatar
临之
deepin
2016-04-06 22:35
#2

ok。

当天也已经在深度用户反馈中提交。
Reply View the author
avatar
Island
deepin
2016-04-15 20:03
#3
你好 3月31号之前你什么时候更新过,经排查 3月20-31号之间并没有更新会影响到这。
Reply View the author
avatar
临之
deepin
2016-04-15 21:29
#4
https://bbs.deepin.org/post/38487
你好 3月31号之前你什么时候更新过,经排查 3月20-31号之间并没有更新会影响到这。 ...

印象中没有更新过,3月28日下午才安装。印象中3月31日的是第一个系统更新。哪里可以查到更新记录?
Reply View the author
avatar
Island
deepin
2016-04-15 22:45
#5
/var/log/apt/history.log  把这个日志贴上来
Reply View the author
avatar
临之
deepin
2016-04-18 17:31
#6
https://bbs.deepin.org/post/38487
/var/log/apt/history.log  把这个日志贴上来

你们的bugzilla平台给我的回复邮件是:

  1. 解决方案:
  2. 经排查,是因为/etc/profile中配置的java_home等无效,导致调用的java变为自带的jdk
  3. sudo source /etc/profile
Copy the Code
Reply View the author
avatar
临之
deepin
2016-05-25 18:02
#7
https://bbs.deepin.org/post/38487
/var/log/apt/history.log  把这个日志贴上来

昨天更新后,问题再次出现,现在是直接无法启动,都不报错了。。。

你们bugziila平台给出的方法:sudo source /etc/profile ,系统提示找不到命令。去掉sudo直接执行或者切换到root用户后,执行成功后,问题仍然不能解决:


Reply View the author
avatar
临之
deepin
2016-05-25 18:30
#8
https://bbs.deepin.org/post/38487
/var/log/apt/history.log  把这个日志贴上来

最新的出问题后,日志文件中仅有如下内容:

Start-Date: 2016-05-24  09:43:14
Commandline: apt-get -y -o APT::Status-Fd=3 -c /var/lib/lastore/apt.conf --force-yes dist-upgrade
Install: linux-image-4.4.0-2-deepin-amd64:amd64 (4.4.6-2, automatic), linux-compiler-gcc-5-
.....
.....
End-Date: 2016-05-24  10:21:23
Reply View the author
avatar
Island
deepin
2016-05-25 20:15
#9
https://bbs.deepin.org/post/38487
昨天更新后,问题再次出现,现在是直接无法启动,都不报错了。。。

你们bugziila平台给出的方法:sudo s ...

直接source /etc/profile     root用户  环境变量设置到了root用户
Reply View the author
avatar
临之
deepin
2016-05-25 20:53
#10
https://bbs.deepin.org/post/38487
直接source /etc/profile     root用户  环境变量设置到了root用户

嗯,已经有大牛解释了。不过source后依然无效。我稍后正常关闭下原来强制关闭的win10后再尝试一下
Reply View the author
avatar
临之
deepin
2016-05-25 21:57
#11
https://bbs.deepin.org/post/38487
直接source /etc/profile     root用户  环境变量设置到了root用户

确认还是升级导致的问题。java默认路径又被重置了

  1. ~$ /usr/local/jdk/jre/bin/java -version
  2. java version "1.8.0_77"
  3. Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
  4. Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

  5. ~$ java -version
  6. openjdk version "1.8.0_77-Debian"
  7. OpenJDK Runtime Environment (build 1.8.0_77-Debian-8u77-b03-3+b1-b1)
  8. OpenJDK 64-Bit Server VM (build 25.77-b1, mixed mode)
Copy the Code
Reply View the author
avatar
yuwangliang
deepin
2016-05-26 04:39
#12
不需要重新配置啊,我的jdk ,jre ,arm都好好地
Reply View the author