File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes during runtime : java.lang.NoSuchMethodError HELP! 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 » Java in General
Reply Bookmark "during runtime : java.lang.NoSuchMethodError HELP!" Watch "during runtime : java.lang.NoSuchMethodError HELP!" New topic
Author

during runtime : java.lang.NoSuchMethodError HELP!

John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 221
Hi,
I am getting this: java.lang.NoSuchMethodError. Yes it tries to use a static method that DOES exist in the class. And I did recompile.

Thanks.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32654
    
    4
Don't know. Please supply more details. Are the two classes in the same package and same .jar?
John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 221
funny. recompile didn't help. but when I did rebuild project this problem went away. seems like intellij bug
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32654
    
    4
If you recompile a class in a package, the compiler "assumes" classes in other packages have already been compiled. So any additions to a supplier class which your recompiled class has as a dependency may not be implemented in the .class file.

And if anybody else can find a more complicated or obscure way to explain it, I challenge you to try
 
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: during runtime : java.lang.NoSuchMethodError HELP!
 
Similar Threads
package javax.servlet.http does not exist
toString()?
compiler error
Help me for these questions from John Hunt's mock exam
static inner class