Import a class file from a specific jar

I work with 2 jars, base.jar and a .jar derivative, where I ordered the class path this way: base.jar and then a .jar derivative

I have a problem with the fact that I have a class with the same package name in both banks that it is third-party, that I can’t change

And in the code I want to import a class from a .jar derivative with a change in the order of the class path?

Is there an option in my code in the import command or add annotation?

thank

+3
source share
2 answers

If you write your own class loader with a predictable jar load order, yes. But instead, you should rename the class / package.

0
source

, , .

0

All Articles