ARUN PRAKASH
ARUN PRAKASH

Reputation: 1

How do we manage 2 jars at server runtime which are having same Class

I have a class called Person in jar JAR-1, and JAR-2 Then how do i set to execute the Person Class from JAR-2 at runtime in tomcat web server?.

Thanks in advance.

Upvotes: 0

Views: 64

Answers (1)

Anand Pandey
Anand Pandey

Reputation: 393

You can always write your own ClassLoader and chain it with the standard ClassLoader and would use the custom classloader to load from either client.dev or prod otherext . http://download.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html

Upvotes: 1

Related Questions