Don't look for JAVA_HOME in bash_profile
The Bazel-provided remote JDK is now used by default to build and run
Change-Id: I0f9b340899dbd1fa59bf78c453df94d28cfded1a
diff --git a/tools/dev/bash_profile b/tools/dev/bash_profile
index 2e14e7e..970158e 100644
--- a/tools/dev/bash_profile
+++ b/tools/dev/bash_profile
@@ -13,17 +13,6 @@
# Default to drivers and gui2
export ONOS_APPS=${ONOS_APPS:-drivers,openflow,gui2}
-# Setup some environmental context for developers
-if [ -z "${JAVA_HOME}" ]; then
- if [ -x /usr/libexec/java_home ]; then
- export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
- elif [ -d /usr/lib/jvm/java-8-oracle ]; then
- export JAVA_HOME="/usr/lib/jvm/java-8-oracle"
- elif [ -d /usr/lib/jvm/java-8-openjdk-amd64 ]; then
- export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
- fi
-fi
-
export MAVEN=${MAVEN:-~/Applications/apache-maven-3.3.9}
# Clean up Karaf environment variables to avoid issues when switching from ONOS 1.x to 2.x