I am trying to use reflections to load an instance of a class. I am getting a no such method exception when I try and do it. I have checked and checked and re-checked. That
In StoreCommand.java I see this package private constructor:
StoreCommand(ItemSave plugin) {
super(plugin);
}
from the API docs of getConstructor (emphasis mine):
Returns a Constructor object that reflects the specified public constructor of the class represented by this Class object.
Either make the constructor public or use getDeclaredConstructor()
and set then do setAccesible(true)