====== pluggablejs ======
[[:|Projects index]]
===== Details =====
* Current version: 1.1.1build36, published on July 5th 2008
* Released under a [[http://www.linfo.org/bsdlicense.html|Two-clause BSD license]]
* Requires at least [[http://sun.java.com|Java]] v6
===== Description =====
pluggablejs is a wrapper around Java's built-in JavaScript engine intended
to load pieces of JavaScript code as plugins for programs.
\\
It's a part of some of my Java programs, others can use it although in many cases
an ad-hoc solution might be preferable.
Additionally it [[#shell_usage|can be used as a shell]] to run arbitrary JavaScript code with some extra convenience
objects available, although for such uses [[http://www.beanshell.org/|BeanShell (bsh)]] makes a lot more
sense.
\\
My own, much simpler, [[:javacode#RhinoRun]] can also be used to run
arbitrary JavaScript.
===== Download =====
* Binary jar
* [[/files/pluggablejs/pluggablejs-1.1.1build36.jar|pluggablejs-1.1.1build36.jar]]
* ''net.outlyer.plugins.Shell'' wrappers
* Windows\\ \_ [[/files/pluggablejs/pjsh.cmd|pjsh.cmd]]
* Linux/Unix\\ \_ [[/files/pluggablejs/pjsh.sh|pjsh.sh]]
* [[//www.debian.org/|Debian]] binary package
* [[deb>files/pluggablejs/libpluggablejs-java_1.1.1build36-upstream.0_all.deb|libpluggablejs-java_1.1.1build36-upstream.0_all.deb]]
* Source jar
* [[/files/pluggablejs/pluggablejs-1.1.1build36-src.jar|pluggablejs-1.1.1build36-src.jar]]
* Source code Will upload soon, see the source jar instead
* pluggablejs-1.1.1.tar.gz\\ Includes source code and some sample usages.
out.println("Hello World!")
$ java -cp pluggablejs.jar net.outlyer.plugins.Shell helloworld.js
Hello World!
----