Skip to content
Advertisement

Maven error: Could not find or load main class And Unable to Edit System Variables

Maven Installed, unable to edit system variables I have Maven installed, and it was working fine yesterday, however now it is displaying the infamous (Maven error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher)

Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher

error…

In other solutions, it seems that the system variable needs to be edited from M2_HOME to M3_HOME. Yet, I am unable to edit my system environment variables (also pictured).

Any suggestions for how I can get past this and be able to perform a clean maven installation?

Advertisement

Answer

Solution: I just uninstalled chocolatey by running command prompt as an administrator, then reinstalled it. For some reason this worked – no idea as to why but that was the solution to the error without having to change system variables.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement