[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Java Linux problem or Java problem?



On May 5, 2012 00:38 "bilsch" <king621@comcast.net> wrote:
> [...]
> 
> TIA   Bill S.
> 

Hi,

> HERE'S THE ERROR OUTPUT:
> run:
> Exception in thread "main" java.lang.VerifyError: Constructor must
> call
> super() or this() before return in method Nvr1.<init>()V at offset 0
>  at java.lang.Class.getDeclaredMethods0(Native Method)
>  at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
>  at java.lang.Class.getMethod0(Class.java:2685)
>  at java.lang.Class.getMethod(Class.java:1620)
>  at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:488)
>  at
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:480)
> Java Result: 1
> 
> 
> [...]
> 
> 

Looks like the byte-code verification fails.  If it was compiled with
an older version of Java, it is possible that the new version is more
strict (or maybe it has a bug - not sure).

Try recompiling the Java file with the same version of Java as you are
using to run it.

~Niels


Reply to: