Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Scala is supported too I think? Commented Mar 7, 2018 at 16:51
  • ScriptEngine languages are self-registering via the java.util.ServiceLoader mechanism (Service Discovery / Service Provider Interface). This means that in a library in META-INF\services a file is created that points to an implementation of the ScriptEngineFactory interface. It depends on the specific language if they add this in the "core" jar of the scripting language, or if this is done via a separate jar. For example beanshell add this in the core org.apache-extras.beanshell:bsh jar since version 2.0. Adding this jar to your classpath is sufficient to be able to use in ScriptEngine. Commented Jul 19, 2022 at 12:20

lang-java