我下载了netbeans ide 11并尝试做一个示例hello world项目,但它给了我错误“无法访问java.lang致命错误:无法在类路径或引导类路径中找到包java.lang”我尝试了一些堆栈溢出的解决方案但没有工作。
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication1;
/**
*
* @author ahmad
*/
public class JavaApplication1 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Hello");
}
}