Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java 6.0 Scripting Support in Java 5.0?

807607Oct 17 2006 — edited Jan 20 2007
Is it possible (and how) to use Java 6.0's scripting support in Java 5.0?

Comments

masijade
Short answer No. Java is very good about backwards compatibility, but I don't believe that it is usually designed to work the other way (at least not when it comes to completely new features).
807607
In the presentation by Mike Grogan, see developers.sun.com/events/techdays/presentations/2006/TD_SEA_JavaScripting.pdf, he mentioned about the javax.script package is part of Java SE 6 and it is also available for Java 5.0 (?).

Hmmm... unfortunately he did not describe how to use the scripting package in Java 5.0...
masijade
Then color me blue and call me Poppy.

I stand corrected.

But, since there seem to be published white papers about it, I would say Google.
807607
See Rhino.

This is essentially the scripting engine that's incorporated in Java SE 6.0.
You can ofcourse download it and use it with Java 5.0 or earlier versions.

See also JSR 223.
807607
found it .
the link to download the scripting package is
http://jcp.org/aboutJava/communityprocess/pr/jsr223/
1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 17 2007
Added on Oct 17 2006
5 comments
86 views