Problem in running java code in netbeans ide

272 Views Asked by At

I am using netbeans ide 10.0 I am not able to run even a single code. please help

i have tried to change java version

/*
 * 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
    }
}

i am getting this output

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

There are 0 best solutions below