Java Package, Project , NoSuchMethod error

Posted by hamam on Stack Overflow See other posts from Stack Overflow or by hamam
Published on 2010-04-15T16:30:16Z Indexed on 2010/04/15 16:33 UTC
Read the original article Hit count: 156

Filed under:
|
|
|

I have 2 projects linked and these 2 projects each have a package under them.

XProject -> XPackage -> XClass -> X1Method(); X2Method();

YProject -> YPackage -> YClass -> Y1Method();

I'm trying to call X1 and X2 methods from Y1 Method. I can call X1 Method but when I call X2 method I get a runtime error (java.lang.NoSuchMethodError:)

All methods are public and there is nothing wrong with method names. It is just nonsense to have one of them working while other is giving runtime errors.

Any help would be appreciated. Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about nosuchmethoderror