Using Nashorn as an external library

eranda rajapaksha erandacr at gmail.com
Fri May 6 06:29:38 UTC 2016


hi,

Thanks for both.
Yeah I saw the backport thing I had the same concern. And it seems like
going for an external library is not as straightforward as I thought.
The problem I am having is, I need to support Java6,7 and 8 with my
application. It looks like using nashorn in 8u and rhino in older JDK
versions is the only reliable option I have for now.

Thanks,

On Fri, May 6, 2016 at 9:09 AM, Sundararajan Athijegannathan <
sundararajan.athijegannathan at oracle.com> wrote:

> While such a backport *may* work, nashorn developers are not conscious
> of jdk7 or below compatibility in nashorn source code. Besides as
> external library, you still need to provide all-permission to nashorn
> code [to run under security manager]. There may be assumptions about
> being loaded by extension loader.
>
> Summary: I'd recommend migrating to 8u to be safe.
>
> -Sundar
>
> On 5/5/2016 10:02 PM, Tomáš Zíma wrote:
> > Hi,
> >
> > take a look at https://bitbucket.org/ramonza/nashorn-backport.
> >
> > - tzima
> >
> > On 5.5.2016 08:43, eranda rajapaksha wrote:
> >> Hi,
> >>
> >> I have a problem on the $subject, and I would be really grateful if
> >> anyone
> >> can help me out on this.
> >>
> >> I am using Nashorn engine with Java 8. But due to non-availability of
> >> Nashorn in earlier java versions, I have a difficulty in achieving the
> >> required level of performance with those. Is there an alternative for
> >> that,
> >> such as using the Nashorn as an external Jar library with my java
> >> application, so that it would be independent from the running Java
> >> version?
> >>
> >> Thanks,
> >>
> >
> >
>
>


-- 
*Eranda Rajapakshe*
Computer Science and Engineering Undergraduate,
University of Moratuwa.
Tel : +94784822608
Email : erandacr at gmail.com <erandac at wso2.com>


More information about the nashorn-dev mailing list