Here you can find the source of getScriptEngine(final ClassLoader loader, final String... args)
public static ScriptEngine getScriptEngine(final ClassLoader loader, final String... args)
//package com.java2s; //License from project: Open Source License import javax.script.ScriptEngine; import jdk.nashorn.api.scripting.NashornScriptEngineFactory; public class Main { private final static NashornScriptEngineFactory FACTORY = new NashornScriptEngineFactory(); public static ScriptEngine getScriptEngine(final ClassLoader loader, final String... args) { return FACTORY.getScriptEngine(args, loader); }//from w w w . ja v a2s.c om }