Back to Browse

How to resolve compiler errors while running Maven Project from Eclipse & CMD line | Fix Maven Error

26.8K views
Sep 4, 2020
33:08

In this Session no 7 in Maven series, I have explained following topics: (Very IMP for Interviews) Q. How to resolve following errors when running your Maven Project(Particularly When JDK Version is greater than 8 ) [ERROR 1] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 1. Set JDK as run time environment 2. Update Maven Project ------------------------------------------------------------ [ERROR 2] Source option 6 is no longer supported. Use 7 or later. [ERROR 2] Target option 6 is no longer supported. Use 7 or later. By default Maven Compiler uses 1.6 as Source and Target. So we need to force it to use 1.8 version(Java 8 version) no matter what JDK version u have Set in Installed JREs. 1. Add Properties to Set Source and Target as 1.8 in POM.XML 2. Configure Maven Compiler plugin to Set Source and Target as 1.8 in POM.XML 3.Best way: Install JDK 1.8 and Set path in Environmental Variables --------------------------------------------------------- ========================== *******AJ AUTOMATION****** ========================== Hi guys, Please share the content whichever you find informative. ==:Useful Playlists for learning Test Automation:== ✅ Let's Learn the Concept in 5 To 10 Mins := https://www.youtube.com/playlist?list=PLlc_LrU50tljSA5wcIpKSYRDrGX3iLQQQ ✅ Selenium series videos Playlist := https://www.youtube.com/playlist?list=PLlc_LrU50tliMZrnSa0a9geljzCijPDfq ✅ Maven Tool videos playlist := https://www.youtube.com/playlist?list=PLlc_LrU50tlgWOrybr-Ppffg6T_1cXeUb ✅ Selenium WebDriver Exceptions Playlist := https://www.youtube.com/playlist?list=PLlc_LrU50tlisWfvF3qXmFTaTKDYkib_p ✅ Selenium Grid With Docker:== https://www.youtube.com/playlist?list=PLlc_LrU50tliN8PZ7Xk41NwrnelPHchSk ✅ Upload and Download Files in Selenium := https://www.youtube.com/playlist?list=PLlc_LrU50tlhD9ezHt9O-mlWjiu3XyS3U ✅ Excel and CSV files operations := https://www.youtube.com/playlist?list=PLlc_LrU50tlifVlnHI4ph5XuY1_pNusBy ✅ Java Language Concepts := https://youtube.com/playlist?list=PLlc_LrU50tliq2RV-1Yhr2IjJ5RqXCQjU ✅TestNG Framework Videos:= https://www.youtube.com/watch?v=-KEg20O6Mxs&list=PLlc_LrU50tlgMVcdTBSZXt34JavaOEY8G ✅ Become Master in Xpath:= https://www.youtube.com/watch?v=Wv1hHLhtnzw&list=PLlc_LrU50tlhzCzcfnY2S2vXnkFWorlT- ✅ Protractor series videos playlist := https://www.youtube.com/playlist?list=PLlc_LrU50tlim53VdVwAmCnBr8M2x38y8 ✅ Recent Uploads := https://youtube.com/playlist?list=PLlc_LrU50tljOnB-LUofJpBkeSMskcQVd ✅ GitHub Repo:= https://github.com/ajautomation ⚡️ Thanks for your support !! ⚡️ ====================================== **************** Thanks for watching !!************** ====================================== ⚡️ Keep Learning...Keep Sharing...Keep Growing. ⚡️ #LearnSeleniumInEasyWay #SeleniumWebDriver

Download

0 formats

No download links available.

How to resolve compiler errors while running Maven Project from Eclipse & CMD line | Fix Maven Error | NatokHD