Set JAVA_HOME properly
diff --git a/onos-setup.sh b/onos-setup.sh
index 121faf8..5d23e00 100644
--- a/onos-setup.sh
+++ b/onos-setup.sh
@@ -23,6 +23,7 @@
 	sudo cp /home/mininet/.ssh/id_rsa /home/$name/.ssh/
 	sudo chown $name:$name /home/$name/.ssh/id_rsa
 	
+	sudo -u $name sh -c "echo \"export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> /home/$name/.bashrc"
 	sudo -u $name sh -c "echo \"export ONOS_ROOT=/home/mininet/onos\" >> /home/$name/.bashrc"
 	sudo -u $name sh -c "echo \"export KARAF_ROOT=/home/mininet/apache-karaf-3.0.3\" >> /home/$name/.bashrc"
 	sudo -u $name sh -c "echo \"export M2_REPO=/home/mininet/.m2/repository\" >> /home/$name/.bashrc"
@@ -117,7 +118,7 @@
 echo $ONOS_ROOT
 
 echo $JAVA_HOME
-export JAVA_HOME=""
+export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
 cd $ONOS_ROOT && mvn clean install && mvn dependency:go-offline && cd -
 
 cat << EOF >> onos/tools/test/cells/3node