importClass

A. Sundararajan sundararajan.athijegannathan at oracle.com
Tue Oct 8 03:26:01 PDT 2013


var List = Java.type("java.util.List");

is the recommended way. But if you've to use importClass, you can do the 
following:

load("nashorn:mozilla_compat.js")
importClass(java.util.List);

-Sundar

On Tuesday 08 October 2013 12:22 PM, Tal Liron wrote:
> What is the equivalent of Rhino's importClass in Nashorn?



More information about the nashorn-dev mailing list