Installing jdk8 on ubuntu- “unable to locate package” update doesn't fix

前端 未结 8 1209
野性不改
野性不改 2021-02-02 09:37

I\'ve been trying to install the jdk on my ubuntu after downloading it.

first I\'ve used: sudo apt-get update

then: sudo apt-get install jdk*

8条回答
  •  情话喂你
    2021-02-02 09:59

    It's same as vikasdumca's steps, but thought to share the link.

    run the following command

    sudo apt-get install python-software-properties
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    

    then

    sudo apt-get install oracle-java8-installer
    

    this would install oracle java 8 on ubuntu properly.

    find it from this post

    you can find more info on "Managing Java" or "Setting the "JAVA_HOME" environment variable" from the post.

提交回复
热议问题