How do I run a beanshell script on my Mac?
- by jonalv
My Ubuntu-friend told me to testrun a Beanshell script by doing:
bsh #filename#
and when I told him that I don't know what bsh is nor have it he told me:
sudo apt-get install bsh
Being on a Mac I instead ran:
sudo port install beanshell
But still no bsh command available. A listing of the package content revealed a jar file named:
/opt/local/share/java/bsh.jar
but when I try to run that with my script file a complete Window manager written in Java starts up (and does not run the script file btw). Now, clearly I am doing something wrong, I am sure there must be a way of running beanshell scripts on a mac terminal although it does seem more natural for the linux users. What am I doing wrong and what should I do to run that script?