Madan Thunderfist
Madan Thunderfist

Reputation: 303

Usage of nashorn javascript enigne along with jdk 1.6

My code is using rhino javascript engine in jdk 1.6/jdk 1.8 (with external rhino jars). Is there anyway I can implement nashorn javascript engine in jdk 1.6?

Upvotes: 0

Views: 64

Answers (1)

A. Sundararajan
A. Sundararajan

Reputation: 4405

No. Nashorn uses invokedynamic which implies that you've to be on jdk7 at the minimum. Also I think jdk 8 Java constructs are used in the nashorn code - which implies that you've to be on jdk8+.

Upvotes: 1

Related Questions