简体   繁体   中英

Can't get selenium to work on java

I am loading up a webdriver and I got an error which got fixed by adding guava, but now I get this

Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException

I have selenium-java-2.38.0 . I went to sourcefourge and got a json jar but that didn't help. Not sure what specific one I need.

Try using the standalone package. You shouldn't have to search for any further dependency with it.

http://code.google.com/p/selenium/downloads/detail?name=selenium-server-standalone-2.39.0.jar

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM