0

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?

Madan Thunderfist
  • 193
  • 1
  • 2
  • 14

1 Answers1

1

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+.

A. Sundararajan
  • 4,277
  • 1
  • 15
  • 30