Dear community,
Sorry, but I again don’t know what the appropriate forum for my problem is.
I was following a Maven fundamentals course on Pluralsight, but I got stuck there (it didn’t work). So I switched to https://www.tutorialspoint.com/maven/index.htm.
I did not exactly follow the setup steps since I had already done that sort of stuff. Then, when I instructed in the command prompt
mvn --version
the response was
Unrecognized option: -
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Java also is unable to run some .java .class and .jar file (which is normal, but before I had managed to make at least one of them work).
The instruction
java --version
returns
openjdk 18.0.2.1 2022-08-18
OpenJDK Runtime Environment (build 18.0.2.1+1-1)
OpenJDK 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)
I looked for a soluiton on https://helpdeskgeek.com/help-desk/h...machine-error/
None of the suggestions work.
Uninstalling Java fails because it is not listed in Windows Apps list. Java’s installation folder also doesn’t seem to contain an uninstaller.
How can I get Maven to work and why isn’t Java listed as an installed program ?