without package string in not working in java code example
Example: java commands in different packages not working
// make sure you have this in onEnable()
this.getCommand("COMMANDHERE").setExecutor(new classname());
// make sure you have this done