FCTA - Module 2.2.3 Compilation failure

Working on module 2.2.3 in Java (& on MS Windows); I think I followed the setup for the course (install Java, Maven, IntelliJ, download repository) and the early parts of this exercise correctly (update pom.xml, add test directory with exampletest file), but when I try to run: mvn clean verify (in Powershell), I get:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project mot-cert-support-app-java: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

Attached is screenshot of the Powershell details

Does anyone know how to resolve this error? Thanks!

Screenshot of the project in IntelliJ:

A friend helped me resolve this. The main error was that I had installed normal Java, per the MoT “Foundation Certification in Test Automation” setup instructions, but it came with JRE & not any JDK. We downloaded open-source JDK “Eclipse Temurin” and installed that, which enabled JDK.

Secondarily, the instructions in module 2.2.3 weren’t clear on the Dependencies and Plugins parts; it is required to “add” these to the pom.xml and NOT “replace” these. Adding them requires changing up the file structure a bit so you don’t have duplicate top-level folders. Once I fixed this, it resolved the 2ndary set of errors I saw (after fixing the JDK part).

So, I was able to run mvn clean verify successfully in the end. I just think this course instructions need some more detail.

That’s actually a pretty common miss-understanding when it comes to JDK/JRE, the instruction has to assume a level of experience. Not everyone will use the same tools, but we assume that any follower will have chosen and understood what each tool is primarily for. But I have to admit, screwing up java, powershell, python, c++, borland, makefiles, multi-threaded code, inheritance, firewalls, DHCP, DNS, network masks, off-by-one errors, the list goes on. Are easy. It’s a mark we can eventually all use, to know to just slow down and accept that this is not easy stuff at all.

Welcome to the university of hard knocks :slight_smile: The edges will remain.

Good luck with the job hunting BTW.