我有以下内容.bashrc
:
JAVA_HOME="/usr/bin/java"
GRAILS_HOME="/root/grails"
PATH=$PATH:$JAVA_HOME:$GRAILS_HOME/bin
export JAVA_HOME
export GRAILS_HOME
export PATH
但是,当我> grails
在终端中执行时,我得到:
root@localhost:~# grails
grails: JAVA_HOME is not a directory: /usr/bin/java
当我试图替换为
JAVA_HOME="/usr/share/java"
那么结果是:
root@localhost:~# grails
grails: JAVA_HOME is not defined correctly; can not execute: /usr/share/java/bin/java
我在那里缺少什么?