This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes exception generate java.lang.verifyerror Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "exception generate java.lang.verifyerror" Watch "exception generate java.lang.verifyerror" New topic
Author

exception generate java.lang.verifyerror

Ritesh raushan
Ranch Hand

Joined: Aug 29, 2012
Posts: 97
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)


fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 9948
    
    6

Not when I compile and run it.


Never ascribe to malice that which can be adequately explained by stupidity.
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 1156
    
    3

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: exception generate java.lang.verifyerror
 
Similar Threads
this and super
error in my code?
Regarding the role of hashcode() and equals()
comparable program counstructor not found exception
help solving dynamic method invocation exception.