[英]Maven Error | Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
I am unable to install/use Maven and getting the below error.我无法安装/使用 Maven 并收到以下错误。
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher错误:无法找到或加载主 class org.codehaus.plexus.classworlds.launcher.Launcher
Steps on installation:安装步骤:
Now if I use "maven -v" command on the command line it throws the above-mentioned class error.现在,如果我在命令行上使用“maven -v”命令,它会抛出上述 class 错误。
Also, if I use the same command in the bin directory of maven it gives results.另外,如果我在 maven 的 bin 目录中使用相同的命令,它会给出结果。
PS I have gone through many threads here but does not resolve my problem. PS我在这里经历了很多线程,但没有解决我的问题。
I put maven directory in Program files folder and updated path and it started working!我将 maven 目录放入 Program files 文件夹并更新路径,它开始工作了!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.