I have a Rhino project where I’ve written some .js files, and from Eclipse I start my program by calling org.mozilla.javascript.tools.shell.Main with a parameter to one of my .js files, "src/bot.js". Now, in order to run this on my server I would like to be able to build it into a single runnable JAR for easy deployment. How do I do this, or should I try to take on a totally different approach?
I have a Rhino project where I’ve written some .js files, and from Eclipse
Share
The syntax to invoke a script is:
I have not tried it but in threory you should be able to pass in JAR URL as indicated below:
The syntax of a JAR URL is:
for example: