Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
416 views
by The go-to Tester (218 points)

I am running a Selenium Webdriver test for automation test. I am running test on Windows 10. 

My pom file is -:

  <modelVersion>4.0.0</modelVersion>
  <groupId>com.cucumberExample.project</groupId>
  <artifactId>com.cucumber.Example</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <dependencies>
  <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-firefox-driver</artifactId>
        <version>3.0.1</version>
    </dependency>  
  </dependencies>
</project>
 
I am executing pom.xml from Eclipse IDE. I am getting compliation error message.
 
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
 
I cannot resolved this as I have already installed JDK. Please help. 
 

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer

You will have to use JDK as your preferred compiler.

In Eclipse, go to Preferences -> Java -> Installed JRE.

In the project build path config dialog, go to the libraries tab. Here you can delete the entry "JRE System Library". Now click on "Add Library" and selected the Installed JRE to compile with.
 
Once you have selected JDK, above message should be removed.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...