jenkins启动报错Error: could not find libjava.so Error: Could not find Java SE Runtime Environment.

刚装了一台jenkins,service jenkins start时报错。

[root@jenkins ~]# service jenkins start
Starting Jenkins Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.                                                        [FAILED]

根据错误提示感觉是jdk出了问题。检查java -version。

[root@jenkins java]# java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

重新创建java的软链问题解决。

[root@jenkins ~]# ln -s /usr/local/java/jdk1.8.0_51/bin/javac /usr/bin/javac
[root@jenkins ~]# ln -s /usr/local/java/jdk1.8.0_51/bin/jar /usr/bin/jar
[root@jenkins ~]# ln -s /usr/local/java/jdk1.8.0_51/bin/java /usr/bin/java
[root@jenkins ~]# service jenkins start
Starting Jenkins                                           [  OK  ]
[root@jenkins ~]#
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页