public static void main(String[] args)
    {
        ScriptEngineManager factory = new ScriptEngineManager();
        ScriptEngine engine = factory.getEngineByName("Javascript");
        try
        {
            engine.eval("");
        }
        catch(ScriptException ex)
        {
            ex.printStackTrace();
        }
    }