【发布时间】:2019-09-28 09:15:47
【问题描述】:
我下载了 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");
}
}
主要错误是 " 无法访问 java.lang 致命错误:无法在类路径或引导类路径中找到包 java.lang
【问题讨论】:
-
请使用工具 > Java 平台的屏幕截图更新您的问题。
标签: java netbeans-11