Error that I don't understand.

So last night I went to bed and the game I’m working on worked fine. This morning it won’t run. I keeps giving me this error which I will post below. I don’t understand what it means. It doesn’t even mention any of my classes. I’m using netbeans.

If I comment out most of my code except the setting of the applet size in the init method it still runs. But when I comment everything out after the first Object I create, it gives me another errror telling me that seems to being saying that I’m passing the worng arguments to it’s constructor, I haven’t changed that in a few days.

The ony thing I can think which may have caused a problem, is I copy my source code to my gmail as backup. When selecting all the source files, I accidently made a copy of each one. Then I deleted the copies. Maybe I deleted something important, but I can’t think what.

run:
java.lang.VerifyError: (class: arithbequick/Arithbequick, method: init signature: ()V) Incompatible argument to function
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
at sun.applet.AppletPanel.run(AppletPanel.java:368)
at java.lang.Thread.run(Thread.java:619)

I guess its a problem with compiling-running-version problem.

Can you check wich version of javac compiles it, and wich JVM runs it?

Maybe outside of netbeans directly with a buildscript.

Or you compile against a wrong library.

Thanks for the reply.

One thing I’ve done, is set up a new project and copied and pasted every source file into it, and it seems to work now. So that’s ok then.

Dont know netbeans, but in eclipse you can clean and recompile the whole project.
Could have been linked to some outdated classfiles.

I would suspect that you may being using a different library then before or a different JDK.