BT

InfoQ Homepage News Bringing Scripting to the Java Platform

Bringing Scripting to the Java Platform

Bookmarks
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 scripting.dev.java.net includes engine implementations for popular scripting languages such as Groovy, OGNL, Python, Ruby and others.

 

Rate this Article

Adoption
Style

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

BT

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:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.