- anbarasiAmateur
- Posts : 49
Join date : 2012-04-30
Age : 36
Location : chennai
why do i get this error
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
at org.openqa.selenium.firefox.FirefoxProfile.
at org.openqa.selenium.firefox.FirefoxProfile.
at org.openqa.selenium.firefox.FirefoxProfile.
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.
at org.openqa.selenium.firefox.FirefoxDriver.
at org.openqa.selenium.firefox.FirefoxDriver.
at org.openqa.selenium.firefox.FirefoxDriver.
at org.openqa.selenium.firefox.FirefoxDriver.
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
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.
- anbarasiAmateur
- Posts : 49
Join date : 2012-04-30
Age : 36
Location : chennai
Re: why do i get this error
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
2.selenium-java-2.31.0 jar file,
3.junit-4.10
and add my build path to this
- anbarasiAmateur
- Posts : 49
Join date : 2012-04-30
Age : 36
Location : chennai
Re: why do i get this error
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
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
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.
Subscribe to http://www.helpingtesters.com/blog/ for updates.
Re: why do i get this error
Fri Feb 17, 2017 4:38 pm
must be error in the code related to browser. you should rectify
- anbarasiAmateur
- Posts : 49
Join date : 2012-04-30
Age : 36
Location : chennai
Re: why do i get this error
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....
- Error: 'An error occurred executing the click atom' when i try to click an option
- Getting the error msg 'Error: Could not find or load main class java-jar' while executing the selenium code in eclipse
- How to resolve this error---->[error] Element id=ui-active-menuitem not found
- Selenium IDE showing error in click command.. hw to resolve this error
- Storing Error Number and Error Description
Permissions in this forum:
You cannot reply to topics in this forum
|
|