diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2015-06-19 14:03:08 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-06-19 15:31:53 +0000 |
commit | 8104c5b3992a36183c2a74d96e5736af09fb4626 (patch) | |
tree | 936597ace5b613855fbda8c73cc200f745a2255c /site/docs/install.md | |
parent | 1c87a36a49dd3c3dbf2a0eac1e8d359fdeda4c00 (diff) |
Lower the requirement to Java 7
Now that we are using the error-prone javac, there is no need
to impose Java 8. However, because some of our tests are targetting
Java 8, developer should still use a JDK 8 to tests.
--
MOS_MIGRATED_REVID=96400914
Diffstat (limited to 'site/docs/install.md')
-rw-r--r-- | site/docs/install.md | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/site/docs/install.md b/site/docs/install.md index d5bfb1360f..d5577cd390 100644 --- a/site/docs/install.md +++ b/site/docs/install.md @@ -13,7 +13,7 @@ Supported platforms: Java: -* Java JDK 8 or later +* Java JDK 7 or later ## Downloading Bazel @@ -30,21 +30,12 @@ $ git clone https://github.com/google/bazel.git To build Bazel on Ubuntu: -#### 1. Install JDK 8: +#### 1. Install JDK 7: -**Ubuntu Trusty (14.04 LTS).** OpenJDK 8 is not available on Trusty. To -install Oracle JDK 8: +**Ubuntu Utopic (14.10) and Trusty (14.04 LTS).** To install OpenJDK 7: ``` -$ 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 +$ sudo apt-get install openjdk-7-jdk ``` #### 2. Set the `JAVA_HOME` environment variable. @@ -55,16 +46,16 @@ First, check to see if it's already set: $ echo $JAVA_HOME ``` -If this prints the path to the JDK 8 root directory, proceed to the next +If this prints the path to the JDK 7 root directory, proceed to the next step. Otherwise, find the Java `bin` directory using `which javac` and use `javac -version` to verify that you have the right JDK version. Then set the `JAVA_HOME` environment variable to the `bin` directory parent. -For example, if the path is `/usr/lib/jvm/jdk1.8.0/bin/javac`, set the -`JAVA_HOME` variable to `/usr/lib/jvm/jdk1.8.0`: +For example, if the path is `/usr/lib/jvm/jdk1.7.0/bin/javac`, set the +`JAVA_HOME` variable to `/usr/lib/jvm/jdk1.7.0`: ``` -$ export JAVA_HOME=/usr/lib/jvm/jdk1.8.0 +$ export JAVA_HOME=/usr/lib/jvm/jdk1.7.0 ``` You can also add this line to your `~/.bashrc` file. @@ -91,7 +82,7 @@ Bazel on Mac OS X requires: * MacPorts or Homebrew for installing required packages. -* An installation of JDK 8. +* An installation of JDK 7. * For `objc_*` and `ios_*` rule support, you must have Xcode 6.1 or later with iOS SDK 8.1 installed on your system. |