can't upgrade jenkins for java version error

后端 未结 3 981
半阙折子戏
半阙折子戏 2021-01-18 05:21

I have Jenkins running on my Ubuntu 14.04, and i am trying to do upgrade for jenkins using normal apt-get install jenkins, but when i try to do it, i keep getti

相关标签:
3条回答
  • 2021-01-18 05:43

    You need JDK 8 to run jenkins: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04

    0 讨论(0)
  • 2021-01-18 05:45

    Update your java version by using these commands,

    sudo -E add-apt-repository ppa:openjdk-r/ppa 
    
    sudo apt-get update
    
    sudo apt-get install openjdk-8-jdk
    

    and follow this command to change your default selection mode of java version.

    sudo update-alternatives --config java
    

    It should be set to java 8 values.

    0 讨论(0)
  • 2021-01-18 06:02

    You're using Java 7, but Jenkins needs Java 8 - see: https://jenkins.io/blog/2017/04/10/jenkins-has-upgraded-to-java-8

    0 讨论(0)
提交回复
热议问题