真のJavaScripterならRhino使うだろーってことでRhinoの設定。
クラスパスを通す
ホームにrhinoのディレクトリを置く。そしてクラスパスを通す。
export CLASSPATH=~/rhino1_7R2/js.jar
.profileに設定(bashなら.bash_profile)
jsの対話shellとコンパイラを設定しとく。
export CLASSPATH=~/rhino1_7R2/js.jar alias js="java org.mozilla.javascript.tools.shell.Main" alias jsc="java org.mozilla.javascript.tools.jsc.Main"