java - 在netbeans ide中运行java代码的问题
问题描述
我正在使用 netbeans ide 10.0 我什至无法运行单个代码。请帮忙
我试图改变java版本
/*
* 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 helloworld;
/**
*
* @author admin1
*/
public class HelloWorld {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
}
}
我得到这个输出
线程“主”java.lang.RuntimeException 中的异常:无法编译的源代码 - Null ctor sym 类型:RuntimeException(java.lang.String) 在 helloworld.HelloWorld.main(HelloWorld.java:1) /home/admin1/.cache/netbeans/10.0/executor-snippets/run.xml:111:执行此行时出现以下错误: /home/admin1/.cache/netbeans/10.0/executor-snippets/run.xml:94:Java 返回:1 构建失败(总时间:0 秒)
解决方案
推荐阅读
- python - 将小数据框附加到大数据框并对其进行排序
- amazon-web-services - 在单个 DynamoDB 表上使用多个全局索引是否有效?
- javascript - 如何使用javascript在嵌套构建表中使用数组
- javascript - 如何防止手动 URL 更改重新加载 angularjs 应用程序?
- sqlite - 如何使用 linq2db 和 CreateTable 设置 SQLite COLLATE NOCASE 列?
- android - “真实”最近的应用程序列表
- php - Cakephp 3.7 和 PHP 7.2 导致错误 500
- sequelize.js - Sequelize 嵌套关联查询
- java - 是否可以使用 IText 从 PDF 文档中获取页眉和页脚?
- kubernetes - 检查 kubernetes pod CPU 和内存