Two classes with same name in classpath

后端 未结 4 504
醉话见心
醉话见心 2020-12-29 11:18

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

4条回答
  •  北海茫月
    2020-12-29 11:41

    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.

提交回复
热议问题