Re:Yes, I know how to write programs. How do I *run* them?
by ColinWright on Thursday June 30, 2011 @08:35AM
(#2713733)
Apparently not on my reasonably recent version of Ubuntu. I'll look at installing them. Thanks.
Re:Yes, I know how to write programs. How do I *run* them?
by xd on Thursday June 30, 2011 @08:41AM
(#2713750)
Downloading the source from github and compiling is easy enough. Either way, good luck and have fun!
Re:Yes, I know how to write programs. How do I *run* them?
by ColinWright on Thursday June 30, 2011 @08:52AM
(#2713791)
This also works:
colin@Rrrr:~$ js
The program 'js' is currently not installed.
You can install it by typing:
sudo apt-get install rhino
colin@Rrrr:~$ sudo apt-get install rhino
(waits 10 seconds)Done.
Thanks again.
This should do you: https://developer.mozilla.org/en/introduction_to_the_javascr...
Edit: Spidermonkey and v8 are packaged up for pretty much any linux distro. Once installed the command to run spidermonkey is `js`, and `d8` for v8. Just add the name of the JS file you wish to run as the first argument.