代码
import com.sun.tools.javac.util.Abort; // 来自 tools.jar 中的类
public class Test {
public static void main(String[] args) {
System.out.println("hello world");
}
}
使用 javac 来编译, 报如下错误
程序包 com.sun.tools.javac.util 不存在
使用的是 jdk1.8
有铁子知道原因么?