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
For JAVA_HOME to point to the active jdk, add to your ~/.bashrc
JAVA_HOME
~/.bashrc
export JAVA_HOME=$(update-alternatives --query javac | sed -n -e 's/Best: *\(.*\)\/bin\/javac/\1/p')
which will dynamically set the $JAVA_HOME to the JDK selected by update-alternatives.
$JAVA_HOME
update-alternatives