selenium-website Demo Learning-Java.lang.IllegalAccessError, java.lang.NoClassDefFoundError, and not found driver

Source: Internet
Author: User

79302373

Https://stackoverflow.com/questions/30976360/selenium-implicit-dependency

The selenium server version of the Pom that the site gives is 3.0.1, but when you execute some code, you are prompted Java.lang.noclassdeffounderror:com/google/common/net/mediatype

Reason refer to the reason given on the second webpage.

The 24 version of the guava package was imported, but it will be error java.lang.IllegalAccessError

The workaround is for the first web page, and Pom imports the 22.0 version of the guava package.

I didn't find driver, all of it. The driver version is incorrect, or the address of the driver is not set in the environment variable, or there is no setproxxxxxx (native driver address).

selenium-website Demo Learning-Java.lang.IllegalAccessError, java.lang.NoClassDefFoundError, and not found driver

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.