Exception in thread "main" java.lang.NoSuchMethodError: org.openqa.selenium.io.FileHandler.unzip(Ljava/io/InputStream;)Ljava/io/File; -


i'm trying run selenium webdriver program, getting following error :

exception in thread "main" java.lang.nosuchmethoderror: org.openqa.selenium.io.filehandler.unzip(ljava/io/inputstream;)ljava/io/file; 

firefox version : 47.0.1 selenium version : 2.53.1 eclipse : oxygen release (4.7.0)

import org.apache.xpath.xpathcontext; import org.openqa.selenium.webdriver; import org.openqa.selenium.firefox.firefoxdriver;      public class pg1      {         public static void main(string[] args)          {             webdriver driver = new firefoxdriver();             driver.get("http://demo.guru99.com/selenium/newtours/");             system.out.println("the title of page : " + driver.gettitle());             driver.close();         }     } 

this program working fine in laptop, not working on new laptop/setup.

can please help.

error i'm getting :

exception in thread "main" java.lang.nosuchmethoderror: org.openqa.selenium.io.filehandler.unzip(ljava/io/inputstream;)ljava/io/file;     @ org.openqa.selenium.firefox.internal.fileextension.obtainrootdirectory(fileextension.java:82)     @ org.openqa.selenium.firefox.internal.fileextension.writeto(fileextension.java:59)     @ org.openqa.selenium.firefox.internal.classpathextension.writeto(classpathextension.java:64)     @ org.openqa.selenium.firefox.firefoxprofile.installextensions(firefoxprofile.java:443)     @ org.openqa.selenium.firefox.firefoxprofile.layoutondisk(firefoxprofile.java:421)     @ org.openqa.selenium.firefox.internal.newprofileextensionconnection.start(newprofileextensionconnection.java:85)     @ org.openqa.selenium.firefox.firefoxdriver.startclient(firefoxdriver.java:271)     @ org.openqa.selenium.remote.remotewebdriver.startclient(remotewebdriver.java:303)     @ org.openqa.selenium.remote.remotewebdriver.<init>(remotewebdriver.java:125)     @ org.openqa.selenium.remote.remotewebdriver.<init>(remotewebdriver.java:157)     @ org.openqa.selenium.firefox.firefoxdriver.<init>(firefoxdriver.java:218)     @ org.openqa.selenium.firefox.firefoxdriver.<init>(firefoxdriver.java:211)     @ org.openqa.selenium.firefox.firefoxdriver.<init>(firefoxdriver.java:207)     @ org.openqa.selenium.firefox.firefoxdriver.<init>(firefoxdriver.java:120)     @ bitbfw.pg1.main(pg1.java:11) 

found wrong.. in "java build path", jre system library not added earlier. went configure build path-->add jars selected "jre system library", applied & closed.

then on programs worked fine.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -