I\'m pretty new on ubuntu, at some point in the terminal I\'m running:
mortar local:illustrate pigscripts/retail-recsys.pig purchase_input -f params/retail.p
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
in your ~/.bashrc
file.
If you want this environment variable available to all users and on system start then you can add the following to /etc/profile.d/java.sh (create it if necessary):
export JDK_HOME=/usr/lib/jvm/java-7-oracle
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
Then in a terminal run:
sudo chmod +x /etc/profile.d/java.sh
source /etc/profile.d/java.sh