Search code examples
javanetbeans-8nosuchmethoderror

java.lang.NoSuchMethodError: com.wm.util.Strings.isBlank(Ljava/lang/String;)Z


I'm facing an odd error, I'm adding a new jar to my java application (using Netbeans) this jar contain a java class called Strings.

When I decompiled this class I found a method called isBlank().

But once this jar is add to my librairy and my program is runned; an ERROR message displayed "java.lang.NoSuchMethodError: com.wm.util.Strings.isBlank(Ljava/lang/String;)Z" and I'm pretty sure that that method exist as demonstrate by the attached screensohtadding jar

Thanks


Solution

  • Fixed, i found that other JARs contain the same class with different method. So in compilation process the compilator was taking the class from the wrang JAR Solution : i delete the undesired jar