I’m unable to execute the mvnw spring-boot:run command in the intellij terminal. The error I get is:
mvnw : The term ‘mvnw’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
Are you on Windows? Use the ./mvnw spring-boot:run version of the command. The lesson says to do it without the ./ for windows, but you need it if you are using powershell (the default in intelliJ). Maybe without the ./ is for command prompt?
Funnily enough, I was able to get it to run by using backslash rather than forward slash.
.\mvnw spring-boot:run
I think restarting my PC might have also had something to do with it. Thanks for the help @davejandrea
I encountered a compilation error just at the beginning.
Following this suggestion: “If you run into issues building, double-check that JDK 11 is installed and that your JAVA_HOME environment variable points to the JDK 11 installation folder”, I checked and found that I have version 17 installed:
and that my JAVA_HOME is also pointing to that installation:
My question is what can I do to change it only for the Gold Medal Metrics project, not entirely? Is there a way to avoid uninstallation of java 17 and its replacement with java 11 for the whole system?
I would be very thankful for help and broader explanation which and why should I choose?
However, there still might be some, even better, solution… hmm…
No answers came so I tried to implement the second clue but encountered another problem.
Even though I’ve installed java 11 on my computer, I can’t find and select it in IntelliJ Settings for Maven importing: