我在Ubuntu上很新,在终端某一时刻我运行:设置JAVA_HOME环境变量在Ubuntu
mortar local:illustrate pigscripts/retail-recsys.pig purchase_input -f params/retail.params
,但我有这个以下错误:
A suitable java installation could not be found. If you already have java installed
please set your JAVA_HOME environment variable before continuing. Otherwise, a suitable java installation will need to be added to your local system.Installing Java
On OSX run
javac
from the command line. This will intiate the installation. For Linux systems please consult the documentation on your relevant package manager.
但我很确定我有Java,所以请如何设置我的JAVA_HOME环境变量?
我做了一些关于Mortar的移植和[我发现这个文档页面](http://help.mortardata.com/data_apps/recommendation_engine/install_mortar)。我敢打赌,这就是您在运行/安装时想用来导出JAVA_HOME的内容。 – Makoto