SyntaxFix
Write A Post
Hire A Developer
Questions
You may want to check out Rhino.
The Rhino Shell provides a way to run JavaScript scripts in batch mode:
java org.mozilla.javascript.tools.shell.Main my_javascript_code.js [args]