为什么 Runtime.instance 总是给我错误

why Runtime.instance always giving me error

大家好,我是#jade 的新手,现在我正在尝试编写#main class,但我在“#Runtime rt=new Runtime.instance();”处遇到错误这条线,我为玉添加了所有外部罐子,但仍然有这个问题,这意味着 pLiz help

进口jade.core.Runtime; public class 主 {

public static void main(String[] args) {
    Runtime rt=new Runtime.instance();

}

instance方法是returnsRuntimeclass实例的静态方法。您不需要使用运算符 new。即尝试使用Runtime rt=Runtime.instance();