CINXE.COM

OpenJDK: Download and install

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /><title>OpenJDK: Download and install</title><link rel="shortcut icon" href="../images/nanoduke.ico" /><link rel="stylesheet" type="text/css" href="../page.css" /><script type="text/javascript" src="../page.js"><noscript></noscript></script><script src="https://cdn.usefathom.com/script.js" data-site="KCYJJPZX" defer="yes"></script><style type="text/css"> /**/ H2 IMG { padding-top: 2ex; } LI BLOCKQUOTE { margin-left: 1em; margin-top: 1ex; } .code { font-family: monospace; white-space: nowrap; } BODY { padding-bottom: 100%; } /**/ </style></head><body><div id="main"> <h1>How to download and install prebuilt OpenJDK packages</h1> <h2>JDK 9 &amp; Later</h2> <p>Oracle's OpenJDK JDK binaries for Windows, macOS, and Linux are available on release-specific pages of <a href="http://jdk.java.net">jdk.java.net</a> as <code>.tar.gz</code> or <code>.zip</code> archives.</p> <p>As an example, the archives for JDK 13 may be found on <a href="http://jdk.java.net/13">jdk.java.net/13</a> and may be extracted on the command line using</p> <blockquote class="code"><b>$</b> tar xvf openjdk-13*_bin.tar.gz</blockquote> <p>or</p> <blockquote class="code"><b>$</b> unzip openjdk-13*_bin.zip</blockquote> <p>depending on the archive type.</p> <h2>JDK 8</h2> <h3><a name="jdk8_ubuntu" id="jdk8_ubuntu"></a>Debian, Ubuntu, <i>etc.</i></h3> <p>On the command line, type:</p> <blockquote class="code"><b>$</b> sudo apt-get install openjdk-8-jre</blockquote> <p>The <code class="code">openjdk-8-jre</code> package contains just the Java Runtime Environment. If you want to develop Java programs then please install the <code class="code">openjdk-8-jdk</code> package.</p> <h3><a name="jdk8_fedora" id="jdk8_fedora"></a>Fedora, Oracle Linux, Red Hat Enterprise Linux, <i>etc.</i></h3> <p>On the command line, type:</p> <blockquote class="code"><b>$</b> su -c "yum install java-1.8.0-openjdk"</blockquote> <p>The <code class="code">java-1.8.0-openjdk</code> package contains just the Java Runtime Environment. If you want to develop Java programs then install the <code class="code">java-1.8.0-openjdk-devel</code> package.</p> <h2>JDK 7</h2> <h3><a name="jdk7_ubuntu" id="jdk7_ubuntu"></a>Debian, Ubuntu, <i>etc.</i></h3> <p>On the command line, type:</p> <blockquote class="code"><b>$</b> sudo apt-get install openjdk-7-jre</blockquote> <p>The <code class="code">openjdk-7-jre</code> package contains just the Java Runtime Environment. If you want to develop Java programs then install the <code class="code">openjdk-7-jdk</code> package.</p> <h3><a name="jdk7_fedora" id="jdk7_fedora"></a>Fedora, Oracle Linux, Red Hat Enterprise Linux, <i>etc.</i></h3> <p>On the command line, type:</p> <blockquote class="code"><b>$</b> su -c "yum install java-1.7.0-openjdk"</blockquote> <p>The <code class="code">java-1.7.0-openjdk</code> package contains just the Java Runtime Environment. If you want to develop Java programs then install the <code class="code">java-1.7.0-openjdk-devel</code> package.</p> <h2>JDK 6</h2> <h3><a name="jdk6_ubuntu" id="jdk6_ubuntu"></a>Debian, Ubuntu, <i>etc.</i></h3> <p>On the command line, type:</p> <blockquote class="code"><b>$</b> sudo apt-get install openjdk-6-jre</blockquote> <p>The <code class="code">openjdk-6-jre</code> package contains just the Java Runtime Environment. If you want to develop Java programs then install the <code class="code">openjdk-6-jdk</code> package.</p> <h3><a name="jdk6_fedora" id="jdk6_fedora"></a>Fedora, Oracle Linux, Red Hat Enterprise Linux, <i>etc.</i></h3> <p>On the command line, type:</p> <blockquote class="code"><b>$</b> su -c "yum install java-1.6.0-openjdk"</blockquote> <p>The <code class="code">java-1.6.0-openjdk</code> package contains just the Java Runtime Environment. If you want to develop Java programs then install the <code class="code">java-1.6.0-openjdk-devel</code> package.</p> <h2>BSD Port</h2> <p>For a list of pointers to packages of the <a href="https://openjdk.org/projects/bsd-port/">BSD Port</a> for DragonFly BSD, FreeBSD, Mac OS X, NetBSD and OpenBSD, please see the BSD porting Project's <a href="https://wiki.openjdk.org/display/BSDPort/Main">wiki page</a>.</p> </div><div id="sidebar"><div id="openjdk-sidebar-logo"><a href="/"><img alt="OpenJDK logo" src="../images/openjdk-small.png" /></a></div><div class="links"><div class="link"><a href="/install/">Installing</a></div><div class="link"><a href="/guide/#contributing-to-an-openjdk-project">Contributing</a></div><div class="link"><a href="/guide/#reviewing-and-sponsoring-a-change">Sponsoring</a></div><div class="link"><a href="/guide/">Developers' Guide</a></div><div class="link"><a href="/groups/vulnerability/report">Vulnerabilities</a></div><div class="link"><a href="https://jdk.java.net">JDK GA/EA Builds</a></div></div><div class="links"><div class="links"><a href="https://mail.openjdk.org">Mailing lists</a></div><div class="link"><a href="https://wiki.openjdk.org">Wiki</a> &#183; <a href="/irc">IRC</a></div></div><div class="links"><div class="links"><a href="/bylaws">Bylaws</a> &#183; <a href="/census">Census</a></div><div class="link"><a href="/legal/">Legal</a></div></div><div class="links"><div class="links"><a href="/workshop"><b>Workshop</b></a></div></div><div class="links"><div class="links"><a href="/jeps/0"><b>JEP Process</b></a></div></div><div class="links"><div class="about">Source code</div><div class="link"><a href="https://github.com/openjdk/">GitHub</a></div><div class="link"><a href="https://hg.openjdk.org">Mercurial</a></div></div><div class="links"><div class="about">Tools</div><div class="link"><a href="http://git-scm.org/">Git</a></div><div class="link"><a href="/jtreg/">jtreg harness</a></div></div><div class="links"><div class="about">Groups</div><div class="link"><a href="/groups/">(overview)</a></div><div class="link"><a href="/groups/adoption">Adoption</a></div><div class="link"><a href="/groups/build">Build</a></div><div class="link"><a href="/groups/client-libs">Client Libraries</a></div><div class="link"><a href="/groups/csr">Compatibility &amp; Specification Review</a></div><div class="link"><a href="/groups/compiler">Compiler</a></div><div class="link"><a href="/groups/conformance">Conformance</a></div><div class="link"><a href="/groups/core-libs">Core Libraries</a></div><div class="link"><a href="/groups/gb">Governing Board</a></div><div class="link"><a href="/groups/hotspot">HotSpot</a></div><div class="link"><a href="/groups/ide-support">IDE Tooling &amp; Support</a></div><div class="link"><a href="/groups/i18n">Internationalization</a></div><div class="link"><a href="/groups/jmx">JMX</a></div><div class="link"><a href="/groups/members">Members</a></div><div class="link"><a href="/groups/net">Networking</a></div><div class="link"><a href="/groups/porters">Porters</a></div><div class="link"><a href="/groups/quality">Quality</a></div><div class="link"><a href="/groups/security">Security</a></div><div class="link"><a href="/groups/serviceability">Serviceability</a></div><div class="link"><a href="/groups/vulnerability">Vulnerability</a></div><div class="link"><a href="/groups/web">Web</a></div></div><div class="links"><div class="about">Projects</div><div class="link">(<a href="/projects/">overview</a>, <a href="/projects/archive">archive</a>)</div><div class="link"><a href="/projects/amber">Amber</a></div><div class="link"><a href="/projects/babylon">Babylon</a></div><div class="link"><a href="/projects/crac">CRaC</a></div><div class="link"><a href="/projects/code-tools">Code Tools</a></div><div class="link"><a href="/projects/coin">Coin</a></div><div class="link"><a href="/projects/cvmi">Common VM Interface</a></div><div class="link"><a href="/projects/guide">Developers' Guide</a></div><div class="link"><a href="/projects/dio">Device I/O</a></div><div class="link"><a href="/projects/duke">Duke</a></div><div class="link"><a href="/projects/galahad">Galahad</a></div><div class="link"><a href="/projects/graal">Graal</a></div><div class="link"><a href="/projects/icedtea">IcedTea</a></div><div class="link"><a href="/projects/jdk7">JDK 7</a></div><div class="link"><a href="/projects/jdk8">JDK 8</a></div><div class="link"><a href="/projects/jdk8u">JDK 8 Updates</a></div><div class="link"><a href="/projects/jdk9">JDK 9</a></div><div class="link"><a href="/projects/jdk">JDK</a> (&#8230;, <a href="/projects/jdk/22">22</a>, <a href="/projects/jdk/23">23</a>, <a href="/projects/jdk/24">24</a>)</div><div class="link"><a href="/projects/jdk-updates">JDK Updates</a></div><div class="link"><a href="/projects/jigsaw">Jigsaw</a></div><div class="link"><a href="/projects/kona">Kona</a></div><div class="link"><a href="/projects/kulla">Kulla</a></div><div class="link"><a href="/projects/lanai">Lanai</a></div><div class="link"><a href="/projects/leyden">Leyden</a></div><div class="link"><a href="/projects/lilliput">Lilliput</a></div><div class="link"><a href="/projects/locale-enhancement">Locale Enhancement</a></div><div class="link"><a href="/projects/loom">Loom</a></div><div class="link"><a href="/projects/jmm">Memory Model Update</a></div><div class="link"><a href="/projects/metropolis">Metropolis</a></div><div class="link"><a href="/projects/jmc">Mission Control</a></div><div class="link"><a href="/projects/mlvm">Multi-Language VM</a></div><div class="link"><a href="/projects/nashorn">Nashorn</a></div><div class="link"><a href="/projects/nio">New I/O</a></div><div class="link"><a href="/projects/openjfx">OpenJFX</a></div><div class="link"><a href="/projects/panama">Panama</a></div><div class="link"><a href="/projects/penrose">Penrose</a></div><div class="link"><a href="/projects/aarch32-port">Port: AArch32</a></div><div class="link"><a href="/projects/aarch64-port">Port: AArch64</a></div><div class="link"><a href="/projects/bsd-port">Port: BSD</a></div><div class="link"><a href="/projects/haiku-port">Port: Haiku</a></div><div class="link"><a href="/projects/macosx-port">Port: Mac OS X</a></div><div class="link"><a href="/projects/mips-port">Port: MIPS</a></div><div class="link"><a href="/projects/mobile">Port: Mobile</a></div><div class="link"><a href="/projects/ppc-aix-port">Port: PowerPC/AIX</a></div><div class="link"><a href="/projects/riscv-port">Port: RISC-V</a></div><div class="link"><a href="/projects/s390x-port">Port: s390x</a></div><div class="link"><a href="/projects/sctp">SCTP</a></div><div class="link"><a href="/projects/shenandoah">Shenandoah</a></div><div class="link"><a href="/projects/skara">Skara</a></div><div class="link"><a href="/projects/sumatra">Sumatra</a></div><div class="link"><a href="/projects/tsan">Tsan</a></div><div class="link"><a href="/projects/valhalla">Valhalla</a></div><div class="link"><a href="/projects/verona">Verona</a></div><div class="link"><a href="/projects/visualvm">VisualVM</a></div><div class="link"><a href="/projects/wakefield">Wakefield</a></div><div class="link"><a href="/projects/zero">Zero</a></div><div class="link"><a href="/projects/zgc">ZGC</a></div></div><div class="buttons"><a href="https://oracle.com"><img alt="Oracle logo" src="../images/oracle.png" /></a></div></div><div id="footer"> &#169; 2024 Oracle Corporation and/or its affiliates <br /><a href="/legal/tou/">Terms of Use</a> &#183; License: <a href="/legal/gplv2+ce.html">GPLv2</a> &#183; <a href="https://www.oracle.com/us/legal/privacy/">Privacy</a> &#183; <a href="https://openjdk.org/legal/openjdk-trademark-notice.html">Trademarks</a></div><script type="text/javascript" src="/ZNBVQquKRCmTkFz_W96h/9wuJJcNVt9p4/MClz/FjZHVw1/zC0Q"></script></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10