Here you can find the source of removeScript(String name)
public static void removeScript(String name)
//package com.java2s; //License from project: Open Source License import java.util.Hashtable; import java.util.Map; import javax.script.CompiledScript; public class Main { private static Map<String, CompiledScript> ccMap = new Hashtable<>(); public static void removeScript(String name) { if (ccMap.containsKey(name)) ccMap.remove(name);//from ww w . j av a2 s . c o m } }