InfoQ Homepage News Bringing Scripting to the Java Platform

Bringing Scripting to the Java Platform

Scripting languages have traditionally been difficult to integrate into Java applications. A new article on the Sun Developer Network takes a look at using JSR 223 - Scripting for the Java Platform to integrate scripting into your application. JSR 223 attempts to solve the scripting problem by providing a common way to interface Java with scripting languages. Specifically it looks to:
  • Access and control Java technology-based objects from a scripting environment
  • Create web content with scripting languages
  • Embed scripting environments within Java technology-based applications

JSR 223 specifies a series of interfaces in the java.script package that define the interaction with specific scripting implementations. Java SE 6 includes a reference implementation of the JSR along with a scripting engine implementation based on the Rhino: Javascript for Java library. The includes engine implementations for popular scripting languages such as Groovy, OGNL, Python, Ruby and others.


We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p


Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.