Here you can find the source of showEngineList()
public static void showEngineList()
//package com.java2s; //License from project: Open Source License import java.util.List; import javax.script.ScriptEngineFactory; import javax.script.ScriptEngineManager; public class Main { public static void showEngineList() { ScriptEngineManager manager = new ScriptEngineManager(); List<ScriptEngineFactory> factoryList = manager.getEngineFactories(); System.out.println(factoryList.size()); for (ScriptEngineFactory factory : factoryList) { System.out.println(factory.getEngineName() + "=" + factory.getLanguageName()); }//from www .jav a2 s. com } }