If I have two classes with same name say Matcher.java in two different jar in my classpath which one will be picked up by JVM , is there anyway I can suggest JVM to pick a s
Use the fully qualified path of the class when using it. But if you mean the class with the same name also has the same package - fix the class-path.