I am currently trying to develop a plugin using the Bukkit API in Eclipse. However, it seems I cannot import specific classes from the API jar file. If I open the jar file up and look in the list of classes, the classes are there. However, eclipse will not accept import of those classes into my own classes. It shows an error denoting:
[classname] cannot be resolved to a type
I see no reason why the class should not be accepted. Other classes from the same package are imported properly. Other developers using the Bukkit API do not have this problem (I specifically asked).
Picture showing error:
The class EntityEnderman
is in the same package as the class PathfinderGoalEndermanPickupBlock
. But EntityEnderman
is properly imported, PathfinderGoalEndermanPickupBlock
is not.
Here's a picture showing what happens if I click the Fix Project Setup option:
I have already tried to manually edit the build path.
Picture showing proof that the class is really added to the build path of the project:
Why would this happen, and how can I fix it?
I am using the 1.8 version of the API found at spigotmc.org. I am using the newest eclipse available from the Linux Mint repository (Eclipse 3.8). This same error occurs in Netbeans 8, however.