How can I resolve my class from a different jar with same structure like another

前端 未结 4 1299
后悔当初
后悔当初 2020-12-11 18:12

How can I resolve my class from a different jar with same structure like another

Note : Though the jars in question contains the word

4条回答
  •  生来不讨喜
    2020-12-11 18:21

    The exception tells that the required class was not found in the classpath. As you have mentioned that you are adding PhantomJSDriver-jar as an external dependency. Make sure you have the correct scope for the jar and it is bundled when you package your application.

    Refer to this question to get better understanding of the scope.

提交回复
热议问题