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, >> > >