How Do I Download Jdk on Linux?

How Do I Download Jdk on Linux?
Contents

How do I download JDK 15 on Linux?

To Install OpenJDK 15 Java Runtime – Enter the below command on Ubuntu 18.04 / ubuntu 20.04 command line.

  1. $ sudo apt-get install openjdk-15-jre.
  2. $ sudo apt-get install openjdk-15-jdk.
  3. export JAVA_HOME=/usr/lib/jvm/openjdk-15-jdk.

Where should JDK be installed on Linux?

After the installation process is complete, jdk and jre are installed to /usr/lib/jvm/<java> directory, where <java> is the actual java installation folder. For example, /usr/lib/jvm/java-6-sun .

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.