本文共 409 字,大约阅读时间需要 1 分钟。
public void runClass(String name, String key){ try{ var loader = new CryptoClassLoader(Integer.parseInt(key)); Class c = loader.loadClass(name); Method m = c.getMethod("main", String[].class); m.invoke(null, (Object) new String[] { }); }catch (Throwable t){ JOptionPane.showMessageDialog(this, t); } }
转载地址:http://nvzai.baihongyu.com/