This post originated from an RSS feed registered with Java Buzz
by dion.
Original Post: JavaScript Embedded in Java 6
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
JavaScript Embedded in Java 6A brief view into the history via this Sun Java 6 announcement, shows us that in the next Java 6 build, we will have Mozilla Rhino baked in.
Another language-related JSR planned for Mustang is JSR 223. This defines a framework to allow scripting language programs to access information developed in the Java platform. We currently plan to integrate this into Mustang for b40. Aside from the framework, we will also include a JavaScript engine based on the Mozilla Rhino implementation. Later, we hope to include a scripting shell that is script language independent. This will be a very cool way to create a prototype, do some exploratory coding, and learn new APIs.
First, we had a client (browser), that had both a Java VM and a JavaScript interpretter. Now, we have the same on the server-side of things.
This is pretty huge, and will spark more development in scripting languages, and JavaScript itself. Now there is no barrier to install anything, and you will had JS out of the box.
ECMAScript 4 XML is in Rhino. This means that we can leave the DOM (and friends) behind, and can use E4X right away!