Вопрос: Как установить Oracle Java JDK на Ubuntu Linux?

 

Download Install Java (JDK) 8 on Ubuntu From Oracle Website | tar.gz File | Valid for Java (JDK) 14

Видео взято с канала: my name is GYAN


 

Install Java (JDK) 11 LTS or Java (JDK) 14 in Ubuntu (tar.gz) | With & Without Older Version Java-8

Видео взято с канала: my name is GYAN


 

Java Development Kit: How to Install And Setup Java JDK 11 On Linux

Видео взято с канала: The Learn Programming Channel


 

Installing Java 8 JDK on Ubuntu 18.04 or 16.04 manually from tar.gz

Видео взято с канала: Netslave


 

How To Install Oracle Java Jdk on Ubuntu Linux 18.04 || Install java (jdk) 11 ubuntu 18.04 lts

Видео взято с канала: Networking Guruji


 

How to Install Java JRE & JDK 14 on Ubuntu 18.04/19.10

Видео взято с канала: TubeMint


 

How to Install JDK in Ubuntu | Install JDK 12 on Ubuntu 18.04 | Edureka

Видео взято с канала: edureka!


15 комментариев

  • The only way to make Eclipse work with Java is to use 1.8. 11 won’t sync up on Ubuntu, Kali, Windows or Mint. Now, for some reason I can’t get 1.8 (or Java 8) into the configuration on Ubuntu or Kali. I finally made it work on Mint and wrote a test program with Eclipse/Java 8. And everything works. Jar files, so all my graphics, Scenebuilder, Swing desginer, all work only on Mint. I had Java 8 configured in my Ubuntu Linux but also a Jdk11 downloaded. In the last update, all my Ubuntus, defaulted into JDK 11 and JDK8 won’t appear on the list. (What is happening in the world??) It must have something to do with the «no more support for JDK8 in the New World Order,» movement. So I assume Mint is fhe last frontier for JDK8 and should look forward to losing that too, the near future.

  • Help me I get this when I use ls

    /usr/lib/jvm$ ls
    default-java java-11-openjdk-amd64 java-8-openjdk-amd64
    java-1.11.0-openjdk-amd64 java-14-openjdk-amd64 jdk-14.0.1
    java-1.14.0-openjdk-amd64 java-1.8.0-openjdk-amd64 jdk1.8.0_261 and after using command sudo gedit /etc/environment

    I get multiple path already of open jdk

    PATH=»/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games»
    JAVA_HOME=»/usr/lib/jvm/java-8-openjdk-amd64″
    JRE_HOME=»/usr/lib/jvm/java-8-openjdk-amd64/jre»

    now what to do HELP

  • when i run that Java command, it was executing automatically(i think the package was installed already, i havent done so), but same did not happen with javac. so what am i supposed to do, do i still need to install jdk on my mint os if i want to run my java program on eclipse?

  • Oh yay, you just pulled the proverbial fat out of the fire. I’d been beating my head against bludgeoning my 18.04 box at home into running a terribly backlevel Oracle Java 8 version that I needed for an app we run at work that is VERY persnickity about its Java Runtime version. I had the tarball squirreled away, but didn’t have the notes on the environment tweaks necessary to get it to run. Thank you!

  • Where you got «Command ‘java’ not found…» in 5:32 I got:
    /Downloads$ java -version
    openjdk version «11.0.5» 2019-10-15
    OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04)
    OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04, mixed mode, sharing)

    Why is that difference?:?

    After the whole process of installation, I got the following message: Failed to execute command «/usr/lib/jvm/java-11-oracle/bin/jconsole» (no such file or directory).

    Well, I guess I’ve done something wrong, although I followed your exact steps. xd

  • Hey Tim. Thanks for a great tutorial. I noticed that after I moved the unzipped files from my /Downloads folder to /usr/lib/jvm/jdk-11.0.2/, it kept my user permissions from Downloads. This might be OK, but I went ahead and changed permissions to root with a sudo chown -R root:root /usr/lib/jvm/jdk-11.0.2/*. Doing this made the permissions match the other java directories and files in the jvm directory. I also had to run sudo update-alternatives -config java and select my newly installed /usr/lib/jvm/jdk-11.0.2/bin/java so that java -version command displayed the right java version. Running update-alternatives borders on witchcraft and my release might be a little borked so others may not have these issues. Thanks again!

  • On Linux, you’re not supposed to download programs with a web browser. You’re supposed to use the package manager. Please don’t spread misinformation by making bad tutorials.

    For Oracle Java:

    sudo add-apt-repository ppa:linuxuprising/java
    sudo apt install oracle-java11-set-default

    For OpenJDK:

    sudo apt install default-jdk

    This is vastly simpler than your tutorial and works much better (for example, automatic updates)

  • Hi I have freshly installed XUbuntu 18 bionic beaver which is a flavour of Ubuntu 18 bionic. Since I have freshly installed the OS, I am struggling to install the Java and also I am not able to find the.bashrc file also as there is no gedit. Help here.. Make a video for a very fresh installation of Java on a new Ubuntu OS with Java 11.0.1 version.

  • Hi Tim! Thanks for your work and tutorials. But I have a question about Oracle JDK and OpenJDK.
    1) Why do you use Oracle JDK? I read some info’s that Oracle is not free for commercial projects. SO I decided to install OpenJDK.

    2) Does Oracle and Open JDK’s have differences? Which is the best to use in education of JAVA? I mean will I have problems when I apply for a job with skills in OpenJDK?

  • Thank you Tim.

    I have a question, after I type sudo mv jdk-11/* /usr/lib/jvm/jdk-11/ i get a line saying

    Mv: cannot stat ‘jdk-11/*’ no such file or directory.

    My understanding is that it’s saying that folder jdk 11does not exist. I tried to make jdk-11 file twice but still no help