Search
Display results as :
Advanced Search
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

why im not able to run selenium  with eclipse Empty why im not able to run selenium with eclipse

on Thu Dec 15, 2016 12:09 pm
hi
im trying to run java code  using eclipse and i get the following error .please someone help me out,,, im new to webdriver

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    WebDriver cannot be resolved to a type
    FirefoxDriver cannot be resolved to a type

    at runprojpack.runclass.main(runclass.java:6)
avatar
aryasajeev
Posts : 4
Join date : 2016-11-24

why im not able to run selenium  with eclipse Empty Re: why im not able to run selenium with eclipse

on Mon Jan 16, 2017 11:50 pm
hi,

Please install java ,selenium standalone server selenium src along with eclipse and click on build as and select  add an external jar file ,then add all .jar files and selenium standalone and src.Please make sure that it doesn't have compatible issues.


Thanks
arya
avatar
anbarasi
Amateur
Amateur
Posts : 49
Join date : 2012-04-30
Age : 31
Location : chennai

why im not able to run selenium  with eclipse Empty Re: why im not able to run selenium with eclipse

on Wed Jan 25, 2017 9:00 pm
i did all still get this error

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
Sponsored content

why im not able to run selenium  with eclipse Empty Re: why im not able to run selenium with eclipse

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