The Java Scripting functionality is in the
javax.scriptpackage. This is a relatively small, simple API. The starting point of the scripting API is the
ScriptEngineManagerclass. A ScriptEngineManager object can discover script engines through the jar file service discovery mechanism. It can also instantiate ScriptEngine objects that interpret scripts written in a specific scripting language. The simplest way to use the scripting API is as follows:
- Create a
- Get a
ScriptEngineobject from the manager.
- Evaluate script using the