Erro when copying project form another computer
Followed by 2 people
Answered
So i made a spigot plugin but when i copied it from another computer to my current it started throwing error NoSuchMethodFound in package utils class Utils so i tried to delete it and creating new class new package etc. but now when i try to call class Utils in package utils in my current project it throws the error no matter if i delete the project and create new with sama name
Please sign in to leave a comment.
The project is Maven based, therefore it's not IDE dependent and can be built in any IDE as well as in the command line Maven. IDE just imports it from Maven and builds it in the same way. There is some runtime issue that cannot be caused by the IDE.
i dont mean it was caused when compiling but when i deleted the class and create it again
You can find the proper Utils class packaged inside the jar:
ArmorStandEditor-1.0-SNAPSHOT.jar\me\an0nymus_a\utils\Utils.class
If you run "javap" on this jar, you will see that the method reported as not found is available:
What could be is that you still have some old version of this plug-in installed on the server. This old version also has me.an0nymus_a.utils.Utils class, but without getRadarMenuInv() method. The server loads older class version in the classpath first, therefore the new version of the class having this method is not visible in classpath. When you rename your class to some other name, the conflict is resolved and the server is able to find the class with this method.
I would double check what is installed on your server and remove any old copies of this plug-in which also have me.an0nymus_a.utils.Utils class, but without getRadarMenuInv() method.
Adam Zverina
At least "Thank you" would be nice to hear from you. The issue was not related to IntelliJ IDEA at all and you've got help resolving it even though you used the wrong support channel (instead of Minecraft specific resources). I've spent a lot of time handling this case which is clearly outside of the IDE support scope.