My problem is that there is the possibility thath, some classes have the same name and the same package, because are deployed in different jars, is possible to distinct that cases?
No - Welcome to JAR hell!
The class loaded will typically be from the first jar found in the classpath.
See the wiki for a nice explanation.
> is possible to distinct that cases?
Just to be clear...is it possible to do this? Yes.
Is it easy? No. It is however rather straight forward once you know how class loaders work.
Keep in mind that the above only pertains to loading the class. It is still possible that complications might arise if one isn't aware that they are in fact two completely different classes.
Also if it was me I certainly wouldn't try to load them using the standard class path.