1

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

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

Comments

0

I had the same error. The problem here is that isBlank is only available since Java 11 but in the pom the compiler was set to 8. But since 11 is installed on my local machine I could compile and only noticed the problem later while running my program. I am really unhappy how this works without even a warning.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.