A scripting engine is a library that can execute scripts in a particular language. When the virtual machine starts, it discovers the available scripting engines. To enumerate them, construct a
ScriptEngineManager and invoke the
getEngineFactories method. You can ask each engine factory for the supported engine names, MIME types, and file extensions. Table 10.1 shows typical values.
Usually, you know which engine you need, and you can simply request it by name, MIME type, or extension. For example: