A scripting API consists of interfaces and classes that define Java Scripting Engines and provides a framework for their use in Java applications.
The javax.script package available in Java 6+ allows the definition and execution of text based scripts supplied from strings, URLs, Readers or InputStreams. A standard J2SE JVM includes support for JavaScript. Support for additional languages is available either programmatically or through the Java Service Provider mechanism.
Available language support includes:
- BeanShell
- BrowserJS
- EJS
- FreeMarker
- Groovy
- Jacl
- Jaskell
- Java
- JavaScript
- Jawk
- Jelly
- Jep
- JEXL
- JRuby
- JST
- JUDO
- JUEL
- Jython
- OGNL
- Pnuts
- Scheme
- Velocity
- XPath
- XSLT
These implementations are available at the java.net Scripting project website.