// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;

public class ListScriptEngines {

    public static void main(String[] args) {
        for(ScriptEngineFactory sef : (new ScriptEngineManager()).getEngineFactories()) {
            System.out.printf("%s (%s) : %s\n", sef.getEngineName(), sef.getNames().toString(), sef.getExtensions().toString());
        }
    }
}
