diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2015-09-15 07:38:26 +0000 |
---|---|---|
committer | John Field <jfield@google.com> | 2015-09-15 20:26:46 +0000 |
commit | 9c5deb64da0d92b0223a0f37d6beed5b22ba6417 (patch) | |
tree | 981f5f0a1afac69fc0478e9b58fe460ada9c0ffc /site/docs/install.md | |
parent | 73b6c795b179ffd95eb9bef030dc89585a3b394e (diff) |
Requires JDK 8
This change deprecate JDK 7 as JavaBuilder follow changes in Java 9
and might use Java 8 features. We will maintain a build with the
JDK 7 as long as possible but this build won't include updates
in JavaBuilder.
RELNOTES[INC]: Bazel requires JDK 8 to run.
--
MOS_MIGRATED_REVID=103069207
Diffstat (limited to 'site/docs/install.md')
-rw-r--r-- | site/docs/install.md | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/site/docs/install.md b/site/docs/install.md index 2ded214dc2..5652ed82f1 100644 --- a/site/docs/install.md +++ b/site/docs/install.md @@ -13,16 +13,28 @@ Supported platforms: Java: -* Java JDK 7 or later +* Java JDK 8 or later ([JDK 7](#jdk7) is still supported + but deprecated). ## Install dependencies ### Ubuntu -#### 1. Install OpenJDK 7 +#### 1. Install JDK 8 + +**Ubuntu Trusty (14.04 LTS).** OpenJDK 8 is not available on Trusty. To +install Oracle JDK 8: ``` -$ sudo apt-get install openjdk-7-jdk openjdk-7-source +$ sudo add-apt-repository ppa:webupd8team/java +$ sudo apt-get update +$ sudo apt-get install oracle-java8-installer +``` + +**Ubuntu Utopic (14.10).** To install OpenJDK 8: + +``` +$ sudo apt-get install openjdk-8-jdk openjdk-8-source ``` #### 2. Install required packages @@ -33,10 +45,10 @@ $ sudo apt-get install pkg-config zip g++ zlib1g-dev unzip ### Mac OS X -#### 1. Install JDK 7 +#### 1. Install JDK 8 -JDK 7 can be downloaded from -[Oracle's JDK Page](http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html). +JDK 8 can be downloaded from +[Oracle's JDK Page](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html). Look for "Mac OS X x64" under "Java SE Development Kit". This will download a DMG image with an install wizard. @@ -86,6 +98,14 @@ $ export PATH="$PATH:$HOME/bin" You can also add this command to your `~/.bashrc` file. +## <a name="jdk7"></a>Using Bazel with JDK 7 (deprecated) + +Bazel version _0.1.0_ runs without any change with JDK 7. However, future +version will stop supporting JDK 7 when our CI cannot build for it anymore. +The installer for JDK 7 for Bazel versions after _0.1.0_ is labeled +`./install-<em>version</em>-<em>os</em>-<b>jdk7</b>.sh`. If you wish to use JDK +7, follow the same steps as for JDK 8 but with the _jdk7_ installer. + ### Getting bash completion Bazel comes with a bash completion script. To install it: |