javascript
Sandboxing JavaScript in Java App – Link Collection
The JVM is by design an insecure environment and it is generally difficult to run untrusted code in a sandboxed environment. However, it seems that is relatively easy to sandbox JavaScript code running in Oracle Nashorn. The instructions are here. Strangely, this was not easy to find through a Google