在NetBeans IDE中运行Java代码时出现问题

时间:2019-07-18 14:13:25

标签: java netbeans netbeans-10

我正在使用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
    }
}

我得到了这个输出

Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Null ctor sym type: RuntimeException(java.lang.String)
    at helloworld.HelloWorld.main(HelloWorld.java:1)
/home/admin1/.cache/netbeans/10.0/executor-snippets/run.xml:111: The following error occurred while executing this line:
/home/admin1/.cache/netbeans/10.0/executor-snippets/run.xml:94: Java returned: 1
BUILD FAILED (total time: 0 seconds)

0 个答案:

没有答案