2012年9月12日 星期三

Javascript interpter in rhino

There are  a javascript interpter on local machine.
It is the rhino, it is written by java, and you can download it, then

type
[]java -jar js.jar JSFileName

will show the result,

js.sh
{code}
#!/bin/bash
RLWRAP='rlwrap -C js';
exec $RLWRAP java -jar ~/IBMS/Program/java/lib/js.jar "$@";

{code}


Rhino Download:
https://developer.mozilla.org/en-US/docs/Rhino/Download_Rhino?redirectlocale=en-US&redirectslug=RhinoDownload


rlwrap download: http://utopia.knoware.nl/~hlub/uck/rlwrap/

reference:
http://workingrhino.blogspot.tw/2007/10/getting-started.html











沒有留言:

張貼留言