Dmitry Aleksandrov
Dmitry Aleksandrov

Reputation: 710

Java 8 Nashorn JJS – javascript console

a question to an expert: The latest Java 8 provides Javascript engine Nashorn. Its known that with the magic of invokedynamic the javascript is compiled to JVM bytecode, unlike Mozilla Rhino, which just interprets it.

But what about JJS (javascript console). Is there any compilation on the fly? Or there is just interpretation?

Thanks!

Upvotes: 1

Views: 1906

Answers (1)

David P. Caldwell
David P. Caldwell

Reputation: 3839

jjs is just the name of a command-line tool, distributed with the JDK, that invokes Nashorn.

See the Java Platform Tools Reference for details.

Upvotes: 1

Related Questions