Share
Go down
anbarasi
Amateur
Amateur
Posts : 49
Join date : 2012-04-30
Age : 30
Location : chennai

why do i get this error

on Wed Jan 25, 2017 9:00 pm
Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException
    at org.openqa.selenium.firefox.FirefoxProfile.(FirefoxProfile.java:89)
    at org.openqa.selenium.firefox.FirefoxProfile.(FirefoxProfile.java:79)
    at org.openqa.selenium.firefox.FirefoxProfile.(FirefoxProfile.java:67)
    at org.openqa.selenium.firefox.FirefoxDriver.getProfile(FirefoxDriver.java:260)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:236)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:110)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:190)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:183)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:179)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:92)
    at neww.newwclass.main(newwclass.java:7)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 11 more
kostaf
Posts : 1
Join date : 2017-01-27

Re: why do i get this error

on Sat Jan 28, 2017 12:12 am
Have you imported all the libraries that come with the Selenium correctly? Could you provide information what libraries you have added to? What FireFox driver and the browser version is installed? At what line of the code is this exception generated. Without this information it won't be possible to provide you the answer.
anbarasi
Amateur
Amateur
Posts : 49
Join date : 2012-04-30
Age : 30
Location : chennai

Re: why do i get this error

on Thu Feb 02, 2017 1:02 pm
ya i have installed  firefox version 49.0.1 , jdk, and made a new folder named lib and put all these 3 jar files 1. selenium-server-standalone-3.0.1,
2.selenium-java-2.31.0 jar file,
3.junit-4.10
and add my build path to this
anbarasi
Amateur
Amateur
Posts : 49
Join date : 2012-04-30
Age : 30
Location : chennai

Re: why do i get this error

on Thu Feb 02, 2017 1:28 pm
each website shows different ways nd jar files.. dont know wat actually im doing....
soumyamishrav@gmail.com
Posts : 4
Join date : 2017-02-04

Re: why do i get this error

on Sat Feb 04, 2017 6:45 pm
can u downgrade the firefox version and re imoprt the lib and check
Rahul
Posts : 2
Join date : 2017-02-09

Re: why do i get this error

on Thu Feb 16, 2017 5:26 pm
Please visit http://www.seleniumhq.org/about/platforms.jsp, it will tell which version of selenium are support with which version of firefox.

Subscribe to http://www.helpingtesters.com/blog/ for updates.
janbaskt
Active particpant
Active particpant
Posts : 11
Join date : 2016-11-21
https://www.janbasktraining.com/selenium-testing-course

Re: why do i get this error

on Fri Feb 17, 2017 4:38 pm
must be error in the code related to browser. you should rectify
anbarasi
Amateur
Amateur
Posts : 49
Join date : 2012-04-30
Age : 30
Location : chennai

Re: why do i get this error

on Sun Apr 23, 2017 9:43 pm
hi thanks all... it works now my firefox version did not support selenium stand alone and i changed all these and it works now....
Sponsored content

Re: why do i get this error

Back to top
Permissions in this forum:
You cannot reply to topics in this forum