I see any of the below possible reasons :
- You did not include all the jars in classpath, they might have interdependent classes.
- You jar is an old version which is not having that method.
- Some dependent jar is missing which not allowing the class constructor to initialize the class object.