posted 24 years ago
Let's say that you have two jar's in your classpath, say a.jar and b.jar.
Now say there is a class, lets call it common.class in both of these jar files.
If you compile a .java file that calls that common class, the compiler will use the common.class file in the first jar it gets to in the classpath.
example. classpath=c:\jars\a.jar;c:\jars\b.jar Then the common.class in a.jar is used.
Now for my question.
If you have two jars in your installed extensions directory, how is the class found?
(ie. the jars are in c:\(java2 jdk)\jre\lib\ext; )
Thanks for your help.