Reputation: 303
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
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