Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (36 sloc) 2.25 KB
---
title: Pivotal Distribution of OpenJDK
owner: Spring Cloud Services?
---
<strong><%= modified_date %></strong>
Pivotal Distribution of OpenJDK is a distribution of [OpenJDK&reg;](https://openjdk.java.net). It comes in two flavors:
* Binaries which Pivotal builds directly from the upstream [OpenJDK Mercurial source code repository](https://hg.openjdk.java.net/jdk/jdk). This distribution is the same OpenJDK distribution that has been distributed as part of the Pivotal Cloud Foundry Java buildpack since its inception, but it is now also available for use in Pivotal Container Service, in VMs, or on bare metal via Pivotal Spring Runtime. Platform support for these binaries is limited to Ubuntu Linux.
* OpenJDK builds from [AdoptOpenJDK](https://adoptopenjdk.net), which offer wider platform support including macOS and Microsoft Windows.
## Installation
Pivotal Distribution of OpenJDK is available on [Pivotal Network](https://network.pivotal.io/products/pivotal-openjdk).
To install the Pivotal-built binaries:
1. Download the latest Pivotal-built OpenJDK binary from [Pivotal Network](https://network.pivotal.io/products/pivotal-openjdk).
1. Create the directory that will contain the OpenJDK distribution by using the following command:
<pre class="terminal">
$ mkdir openjdk-jre-12.0.0_33
</pre>
1. Extract the compressed file into that directory by using the following command:
<pre class="terminal">
$ tar -xf openjdk-jre-12.0.0_33-trusty.tar.gz -C openjdk-jre-12.0.0_33
</pre>
1. Add this version of Java to your PATH by using the following command:
<pre class="terminal">
$ export PATH=$PWD/openjdk-jre-12.0.0_33/bin:$PATH
</pre>
1. Verify that the Java version is correct by using the following command:
<pre class="terminal">
$ java -version
</pre>
To install binaries from AdoptOpenJDK, follow the [AdoptOpenJDK installation instructions](https://adoptopenjdk.net/installation.html).
## Support Lifecycle
The following table shows the end of support dates for the currently supported JDKs:
| Version | End of Support |
|--------------|----------------|
| OpenJDK 8 | 9/30/2023 |
| OpenJDK 11 | 9/30/2022 |
_Java and OpenJDK are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners._
You can’t perform that action at this time.