Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Dynamic Loading of Classes



Hai everyone

I am having an application that includes two jars in its source path.
These two jars have same set(named) of classes.

For instance there are two packages: Package1 and Package2.
Both have same set of static classes.

When I have reference to one such static class class from MYCODE, it gives a compile time error. The compiler doesn't know from which Package should it consider.

It gives the following error while compiling:
Cannot resolve to a type.

How do I resolve it.
Thank you
Have a nice day

With regards
Mani