• Post Reply Bookmark Topic Watch Topic
  • New Topic

exception generate java.lang.verifyerror  RSS feed

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this gives java.lang.verifyerror


Exception in thread "main" java.lang.VerifyError: Bad type on operand stack in method
Mana.main([Ljava/lang/String;)V at offset 9
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)


 
lowercase baba
Bartender
Posts: 12613
50
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not when I compile and run it.
 
Bartender
Posts: 3307
86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

this gives java.lang.verifyerror


No it doesn't, it throws java.lang.VerifyError. Java is case sensitive.

I must say I've never seen a VerifyError before and I've run your code and it works fine so I suggest you delete the class files, re-compile and try again.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!