Here you can find the source of listScriptEngines()
public static void listScriptEngines()
//package com.java2s; //License from project: Apache License import java.util.List; import javax.script.*; public class Main { public static void listScriptEngines() { ScriptEngineManager mgr = new ScriptEngineManager(); List<ScriptEngineFactory> factories = mgr.getEngineFactories(); int num = 0; for (ScriptEngineFactory factory : factories) { System.out.println("ScriptEngineFactory Info"); String engName = factory.getEngineName(); String engVersion = factory.getEngineVersion(); String langName = factory.getLanguageName(); String langVersion = factory.getLanguageVersion(); System.out.printf((++num) + ". Script Engine: %s (%s)%n", engName, engVersion); List<String> engNames = factory.getNames(); for (String name : engNames) { System.out.printf("\tEngine Alias: %s%n", name); }//from w w w .j a v a 2 s . c om System.out.printf("\tLanguage: %s (%s)%n", langName, langVersion); } } }