mpjboot bash: java: command not found

非 Y 不嫁゛ 提交于 2019-12-11 03:35:01

问题


java and mpj express are installed in /opt in compute node. JAVA_HOME, MPJ_HOME and PATH are set already via bashrc.

error when running mpjboot machines:

bash: java: command not found

java is working already in both machines

mpjboot:

#!/bin/sh

if [ $# -ne 1 ]; then
  echo "Usage: mpjboot <machines_file>";
  exit 127
fi 

java -jar $MPJ_HOME/lib/daemonmanager.jar -boot -m "$@"

回答1:


which Linux Distribution are you using? Try placing MPJ_HOME and JAVA_HOME at top of .bashrc. It fixes this problem in case of Ubuntu particularly.



来源:https://stackoverflow.com/questions/29556289/mpjboot-bash-java-command-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!