I developed a multi-agents where the developer did need the JAR of this platform to build applications (MAS: Multi-Agent System). I'm toning some examples to test and validate the platform. In one example, I built a class that inherits AgentVendor class AgentAtomic (located in the JAR). I instantiates and it works but when using methods that manipulate the type AgentAtomic in the class of the JAR and I do the cast to AgentVendor; an exception occurs. I was able to resolve this exception so that the class AgentVendor be found in the jar of the platform. But I do not understand why the class AgentVendor must be in the JAR to the platform? And therefore I wonder if we can modify a jar archive (compiled) without the original project? Because the developer will not have the source code of the application and will work with the JAR. AND is that there is another way to solve this problem without adding this class to JAR.
Bookmarks