GeckoDriver lunching issue | Selenium Forum
J
janmejai Gupta Posted on 24/06/2019

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

at gecko.Gecko_Driver.main(Gecko_Driver.java:11)


A
Ashish Thakur Replied on 25/06/2019

Please cross check the imports. Have you added all the supplied jars in Selenium?


J
janmejai Gupta Replied on 26/06/2019

i have added the latest jars with the project now am gettig issue while running, will send you the screen short for the same asap. Please see below for the error statement as :

Error: Could not find or load main class org.apache.xalan.xsltc.cmdline.Compile
Caused by: java.lang.ClassNotFoundException: org.apache.xalan.xsltc.cmdline.Compile

Also while excuting the issue as "Run AS Java Appliaction" it is asking for the option to choose  will send you the screen for the  same 


J
janmejai Gupta Replied on 26/06/2019

Please find the attachment for the issue with the window that I am facing while executing 

Responsive image

J
janmejai Gupta Replied on 26/06/2019

this is a window is visible while running

Responsive image

J
janmejai Gupta Replied on 26/06/2019

this window

Responsive image

J
janmejai Gupta Replied on 26/06/2019

Error: Could not find or load main class wedriver03_JAVA.sample_class_01
Caused by: java.lang.ClassNotFoundException: wedriver03_JAVA.sample_class_01


A
Ashish Thakur Replied on 27/06/2019

As I can see in the screenshot. You are using two different versions of Selenium in your project. Keep jars from only one version so that code should not get confused which jar to use.