. Advertisement .
..3..
. Advertisement .
..4..
I’m tired of fixing this error ”error: could not find or load main class org.codehaus.plexus.classworlds.launcher.launcher”. I had to run Maven. mvn clean install after upgrading to Big Sur 1.6. and then I got this error.
I attempted to uninstall and reinstall Java and Maven using the most recent stable releases (Maven 3.8.3 and Java 14). That didn’t work either.
Does anyone have any suggestions for this problem – How to correct it?
The cause: You might get these kinds of problems if you used
brew install maven
to install the maven but didn’t set up the path variables properly.Solution: In order to resolve this problem, uninstall the maven you installed via brew and download and unzip the apache maven binary zip file. Next, set up the path variables.
The same as Java. You should uninstall any JDKs you may have set up using brew and download and set up a JDK from a.dmg file instead. If you can, I’d advise utilizing Oracle JDK.
Setup the JAVA HOME after that and add it to the PATH setting.