toda vez que eu tento executar este código no NetBeans dá esse erro:
Código:
public class Primeiro {
public static void main(String[] args) {
System.out.println("Meu primeiro programa em Java!");
}
}
Erro:
java.lang.VerifyError: Constructor must call super() or this() before return in method primeiro.Primeiro.<init>()V at offset 0
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
at java.lang.Class.getMethod0(Class.java:2764)
at java.lang.Class.getMethod(Class.java:1653)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Exception in thread "main" Java Result: 1
estou fazendo tudo exatamente como diz o post mas o código nao funciona...
algem pode audar????
Código:
public class Primeiro {
public static void main(String[] args) {
System.out.println("Meu primeiro programa em Java!");
}
}
Erro:
java.lang.VerifyError: Constructor must call super() or this() before return in method primeiro.Primeiro.<init>()V at offset 0
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
at java.lang.Class.getMethod0(Class.java:2764)
at java.lang.Class.getMethod(Class.java:1653)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Exception in thread "main" Java Result: 1
estou fazendo tudo exatamente como diz o post mas o código nao funciona...
algem pode audar????