java Errors while Running selenium web driver test in eclipse

89 views
Skip to first unread message

Abhay V

unread,
Nov 3, 2014, 11:47:28 AM11/3/14
to seleniu...@googlegroups.com
I am getting following errors when I intend to run a simple webdriver test in eclipse. I have added all necessary jars in lib folder, still on execution I am getting following errors.

Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException
    at org.openqa.selenium.firefox.FirefoxProfile.<init>(FirefoxProfile.java:89)
    at org.openqa.selenium.firefox.FirefoxProfile.<init>(FirefoxProfile.java:79)
    at org.openqa.selenium.firefox.FirefoxProfile.<init>(FirefoxProfile.java:67)
    at org.openqa.selenium.firefox.FirefoxDriver.getProfile(FirefoxDriver.java:266)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:243)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:197)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:99)
    at LinearFrameWorkProject.Linear_FramWork.main(Linear_FramWork.java:18)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 11 more


please suggest how to get them resolved.


Br
Abhay


Krishnan Mahadevan

unread,
Nov 3, 2014, 9:30:36 PM11/3/14
to Selenium Users

You are missing the org
JSON jars. Please fix your class path

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1f10673b-d67f-4b2a-b087-ad54dca4591d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages