How to get java.lang.NoSuchMethodError

后端 未结 2 647
闹比i
闹比i 2021-01-03 07:03

Introduction:

There are many questions as How to fix java.lang.NoSuchMethodError on SO.

As I can see, the simplest way to get this error, is to make a clas

2条回答
  •  时光取名叫无心
    2021-01-03 07:43

    Create a class file from a class which calls java.util.Properties.load(Reader) in its main method with some Java version >= 1.6.xxxx.

    Attempt to execute this class using some Java version < 1.6.xxxx

    Reason: java.util.Properties.load(Reader) was introduced in Java 6. It is being called, but does not exist in this version of Java.

    This applies similarly to all methods introduced to the default language libraries in updates.

提交回复
热议问题