猿问
下载APP

jdk1.8,maven3.5 这个问题怎么解决

http://img.mukewang.com/5948df7c00017ba706460399.jpg

入门_放弃
浏览 11086回答 33
33回答

翔仔

配置一下环境变量就好了,不然你输入mvn的时候,系统不知道到哪里去找它的执行文件 http://jingyan.baidu.com/article/cb5d61050b8ee7005d2fe04e.html 配置了之后 你输入mvn,系统就知道mvn = xxxxx(路径)/mvn

刘先森的猫

Maven 3.3 要求 JDK 1.7 或以上Maven 3.2 要求 JDK 1.6 或以上Maven 3.0/3.1 要求 JDK 1.5 或以上1.配置java环境变量2.配置maven环境变量.百度下有很多教程的.为啥贴链接就说有 违禁词.....

Caballarii

环境变量没配,英文说得清清楚楚

小鹿仙生

配置maven的环境变量。如果是windows的话,就在系统的PATH下添加MAVEN_HOME或者M2_HOME,最好两个都家一下,只是取个名字不一样罢了,将你的maven的主目录指向到MAVEN_HOME或者M2_HOME。如果是linux的话,直接修改/etc/profile这个文件,可以在最后面添加上M2_HOME=“{你的maven的主目录}”,修改完了保存,然后source /etc/profile就可以了

qq_雁过留声_2

很明显,你的java环境变量配置不正确。JAVA_HOME应该是jdk的安装目录路径。path是bin目录路径。

奔向一万小时

重新配置一下JAVA_HOME,不要指到JRE目录,要指到JDK根目录

墓灵守护

Maven是根据JAVA_HOME去寻找你的Java环境,如果你只是配置了Path,虽然Java项目能运行,但是Maven找不到你的java 路径原因:查看mvn.cmd可以看到,如果JAVA_HOME找不到,就会报错

慕莱坞4347929

多学多看.................................................

慕莱坞4347929

多学多看总是好的......................................................................

慕标0481585

https://www.hao123.com/manhua/list/?cate=%E7%A7%83%E9%B9%B0%E5%A8%81%E5%8A%9B%E6%B5%8B%E8%AF%95%E8%A7%86%E9%A2%91%E3%80%9094003O11.Q%28mk%29%E3%80%91Itxhttps://www.hao123.com/manhua/list/?cate=%E7%A7%83%E5%AD%90%E5%A8%81%E5%8A%9B%E6%B5%8B%E8%AF%95%E8%A7%86%E9%A2%91%E5%BE%AE%E4%BF%A1%E5%8F%B7%E6%B0%94%E7%8B%97%E7%81%AB%E3%80%9094003O11.Q%28mk%29%E3%80%91lydhttps://www.hao123.com/manhua/list/?cate=54%E7%81%AB%E7%8B%97%E5%BE%AE%E4%BF%A1%E6%89%8B%E6%8A%A2%E5%9B%BE%E3%80%9094003O11.Q%28mk%29%E3%80%91Agihttps://www.hao123.com/manhua/list/?cate=%E4%BF%A1%E5%8F%B7%E7%A7%83%E5%AD%90%2A%E6%B0%94%2A%E7%8B%97%2A%E7%81%AB54%E7%81%AB%E7%8B%97%E5%BE%AE%E4%BF%A1%E3%80%9094003O11.Q%28mk%29%E3%80%91jTrhttps://www.hao123.com/manhua/list/?cate=%E7%81%AB%E7%8B%97%E3%80%8264k%E3%80%82%E5%AE%9E%E5%BC%B9%E3%80%82%E9%98%B2%E8%BA%AB%E5%B0%B1%E4%B8%80%E6%8A%8A%E3%80%9094003O11.Q%28mk%29%E3%80%91Axdhttps://www.hao123.com/manhua/list/?cate=%E8%AF%B4%E8%AF%B4%E7%9C%9F%E5%AE%9E%E7%89%88%E7%9A%84%E5%B9%B8%E8%BF%90%E6%89%8B%E6%8A%A2%E3%80%9094003O11.Q%28mk%29%E3%80%91k0zhttps://www.hao123.com/manhua/list/?cate=%E4%B8%96%E7%95%8C%E4%B8%8A%E6%9C%80%E4%BE%BF%E6%90%BA%E7%9A%84%E9%98%B2%E8%BA%AB%E5%B0%8F%E6%89%8B%E6%8A%A2%E5%A8%81%E5%8A%9B%E5%A6%82%E4%BD%95%E3%80%9094003O11.Q%28mk%29%E3%80%91Lw9https://www.hao123.com/manhua/list/?cate=5.5%E7%B2%AE%E9%A3%9F%E7%A7%83%E5%AD%90%E6%A8%A1%E5%85%B7%E4%BB%B7%E6%A0%BC%E3%80%9094003O11.Q%28mk%29%E3%80%91GHThttps://www.hao123.com/manhua/list/?cate=%E7%A7%83%E5%AD%90%E5%BE%AE%E4%BF%A1%E7%BE%A4%E5%8F%B7%E8%81%94%E7%B3%BB%E3%80%9094003O11.Q%28mk%29%E3%80%91uvVhttps://www.hao123.com/manhua/list/?cate=%E5%BE%AE%E4%BF%A1%E7%BE%A4%E9%87%8C%E5%8D%96%E6%8A%A2%E7%A7%83%E5%AD%90%E6%9A%97%E5%8F%B7%E5%A4%A7%E5%85%A8%E3%80%9094003O11.Q%28mk%29%E3%80%91Kl0https://www.hao123.com/manhua/list/?cate=%E9%BB%91%E5%B8%8264%E5%BC%8F%E8%81%94%E7%B3%BB%E6%96%B9%E5%BC%8F%E3%80%9094003O11.Q%28mk%29%E3%80%91mKFhttps://www.hao123.com/manhua/list/?cate=54%E9%BB%91%E5%B8%82%E5%BC%8F%E8%81%94%E7%B3%BB%E6%96%B9%E5%BC%8Fwe%E3%80%9094003O11.Q%28mk%29%E3%80%91wG3https://www.hao123.com/manhua/list/?cate=m9a1%E6%94%B9%E7%81%AB%E7%8B%97%E3%80%9094003O11.Q%28mk%29%E3%80%91RRRhttps://www.hao123.com/manhua/list/?cate=%E9%A6%99%E6%B8%AF%E7%9A%84%E6%89%8B%E5%8D%8E%E5%B0%94%E8%A1%97%E6%B0%94%E3%80%82%E3%80%9094003O11.Q%28mk%29%E3%80%91boJhttps://www.hao123.com/manhua/list/?cate=%E7%8B%97%E5%8E%8B%E7%BC%A9%E6%B0%94%E5%8A%A8%E6%89%8B%E6%8A%A2%E3%80%9094003O11.Q%28mk%29%E3%80%91l8Vhttps://www.hao123.com/manhua/list/?cate=%E6%9A%97%E6%9D%80%E5%88%A9%E5%99%A8%E7%B2%BE%E5%B7%A7%E7%9A%84%E9%92%A2%E7%AC%94%E6%89%8B%E6%8A%A2%E3%80%9094003O11.Q%28mk%29%E3%80%91v00https://www.hao123.com/manhua/list/?cate=%E9%92%A2%E7%AC%94%E5%87%BB%E9%92%88%E7%BB%93%E6%9E%84%E5%9B%BE%E6%80%8E%E6%A0%B7%E7%94%A8%E9%92%A2%E7%AC%94%E5%81%9A%E6%9A%97%E5%99%A8%E3%80%9094003O11.Q%28mk%29%E3%80%91Wkahttps://www.hao123.com/manhua/list/?cate=%E9%BB%91%E5%B8%8264%E5%BC%8F%E5%9B%BE%E7%89%87%E9%BB%91%E5%B8%82%E4%B9%B054%E5%BC%8F%E6%89%8B%E6%8A%A2%E3%80%9094003O11.Q%28mk%29%E3%80%91pD9https://www.hao123.com/manhua/list/?cate=%E9%BB%91%E5%B8%8254%E5%A4%9A%E5%B0%91%E9%92%B1%E4%BB%BF64%E5%BC%8F%E7%81%AB%E7%8B%97%E3%80%9094003O11.Q%28mk%29%E3%80%91jVFhttps://www.hao123.com/manhua/list/?cate=%E4%B8%AD%E5%9B%BD%E4%BA%BA%E5%9C%A8%E7%BC%85%E7%94%B8%E7%8E%A9%E6%8A%A2%E4%B8%AD%E5%9B%BD%E5%85%81%E8%AE%B8%E5%90%97%3F%E3%80%9094003O11.Q%28mk%29%E3%80%91LwNhttps://www.hao123.com/manhua/list/?cate=%E8%B6%8A%E5%8D%97%E8%BE%B9%E7%95%8C%E8%80%81%E8%A1%97%E6%8A%A2%E6%94%AF%E5%B8%82%E5%9C%BA%E3%80%9094003O11.Q%28mk%29%E3%80%91d19https://www.hao123.com/manhua/list/?cate=%E4%BF%84%E7%BD%97%E6%96%AF%E6%8A%A2%E8%B4%A9%E4%B8%AD%E5%9B%BD%E8%BE%B9%E5%A2%83%E3%80%9094003O11.Q%28mk%29%E3%80%91y8zhttps://www.hao123.com/manhua/list/?cate=%E4%B8%AD%E5%9B%BD%E4%B8%8E%E4%BF%84%E7%BD%97%E6%96%AF%E8%BE%B9%E5%A2%83%E8%B4%A9%E6%8A%A2%E4%BA%91%E5%8D%97%E9%BB%91%E6%8A%A2%E7%8E%B0%E7%8A%B6%E3%80%9094003O11.Q%28mk%29%E3%80%91AUNhttps://www.hao123.com/manhua/list/?cate=%E4%B8%AD%E4%BF%84%E8%BE%B9%E5%A2%83%E6%90%9E%E6%8A%A2%E4%BF%84%E7%BD%97%E6%96%AF%E6%8A%A2%E6%A2%B0%E5%B8%82%E5%9C%BA%E3%80%9094003O11.Q%28mk%29%E3%80%91uz7https://www.hao123.com/manhua/list/?cate=64%E5%92%8C54%E5%BC%8F%E7%9A%84%E8%81%94%E7%B3%BB%E6%96%B9%E5%BC%8F%E3%80%9094003O11.Q%28mk%29%E3%80%91SsQhttps://www.hao123.com/manhua/list/?cate=%E4%BA%94%E8%BF%9E%E5%8F%91%E5%B0%8F%E5%8F%A3%E5%BE%84%E5%9B%BD%E9%99%85%E8%B5%B0%E7%A7%81%E3%80%9094003O11.Q%28mk%29%E3%80%91XPqhttps://www.hao123.com/manhua/list/?cate=%E8%B0%81%E6%9C%89%E7%A7%83%E5%AD%90%E5%BE%AE%E4%BF%A1%E3%80%82%E7%A7%83%E5%AD%90%E8%80%81%E5%B8%88%E3%80%9094003O11.Q%28mk%29%E3%80%91uD2https://www.hao123.com/manhua/list/?cate=%E7%A7%83%E5%AD%90%E6%9D%BF%E7%90%83%E5%BE%AE%E4%BF%A1%E5%8F%B7%E3%80%9094003O11.Q%28mk%29%E3%80%91ChBhttps://www.hao123.com/manhua/list/?cate=%E5%86%9B%E7%94%A864%E5%BC%8F%E6%89%8B%E4%BB%B7%E6%A0%BC%E3%80%9094003O11.Q%28mk%29%E3%80%91Y2dhttps://www.hao123.com/manhua/list/?cate=%E5%85%A8%E9%87%91%E5%B1%9E%E5%8F%AF%E6%8A%9B%E5%A3%B364%E5%BC%8F%E7%8E%A9%E5%85%B7%E6%8A%A2%E3%80%9094003O11.Q%28mk%29%E3%80%91DaYhttps://www.hao123.com/manhua/list/?cate=64%E5%BC%8F%E6%89%8B%E6%8A%A2%E5%88%86%E8%A7%A3%E5%9B%BE%E3%80%9094003O11.Q%28mk%29%E3%80%91z0ihttps://www.hao123.com/manhua/list/?cate=64%E5%BC%8F%E6%8A%A2%E8%89%B2%28%E5%8F%AF%E6%8A%9B%E5%A3%B3%29%2B5%E5%8F%91%E5%BC%B9%E6%A8%A1%E3%80%9094003O11.Q%28mk%29%E3%80%91dXOhttps://www.hao123.com/manhua/list/?cate=%E5%9B%BD%E4%BA%A754%E5%BC%8F%E6%89%8B%E6%8A%A2%E7%9A%843%E5%A4%A7%E6%88%90%E5%90%8D%E4%B9%8B%E6%88%98%E3%80%9094003O11.Q%28mk%29%E3%80%91enChttps://www.hao123.com/manhua/list/?cate=%E5%A6%82%E4%BD%95%E8%AF%84%E4%BB%B756%E5%BC%8F%E5%8D%8A%E8%87%AA%E5%8A%A8%E6%AD%A5%E6%8A%A2%E3%80%9094003O11.Q%28mk%29%E3%80%91up8https://www.hao123.com/manhua/list/?cate=56%E5%BC%8F%E5%8D%8A%E8%87%AA%E5%8A%A8%E6%AD%A5%E6%8A%A2%E7%9A%84%E5%B0%84%E7%A8%8B%E5%92%8C%E6%9D%80%E4%BC%A4%E5%8A%9B%E3%80%9094003O11.Q%28mk%29%E3%80%91SF0https://www.hao123.com/manhua/list/?cate=%E5%9B%BD%E4%BA%A756%E5%BC%8F%E5%8D%8A%E8%87%AA%E5%8A%A8%E6%AD%A5%E6%8A%A2%E5%9C%A8%E7%BE%8E%E5%9B%BD%E7%83%AD%E5%8D%96%E3%80%9094003O11.Q%28mk%29%E3%80%91zhUhttps://www.hao123.com/manhua/list/?cate=%E7%A7%83%E5%AD%90%E7%A7%83%E5%AD%90%E8%A6%81%E7%9A%84%E8%81%94%E7%B3%BBpcp%E7%A7%83%E5%AD%90%E3%80%9094003O11.Q%28mk%29%E3%80%91c3ahttps://www.hao123.com/manhua/list/?cate=%E7%A7%83%E5%AD%9025%E4%B8%AA%E5%8E%8B%E8%83%BD%E6%89%93%E5%A4%9A%E5%B0%91%E5%8F%91%E3%80%9094003O11.Q%28mk%29%E3%80%91LY5https://www.hao123.com/manhua/list/?cate=%E7%A7%83%E5%AD%90%E6%81%92%E5%8E%8B%E5%A4%9A%E5%B0%91%E5%BE%AE%E4%BF%A1%E3%80%9094003O11.Q%28mk%29%E3%80%91CChhttps://www.hao123.com/manhua/list/?cate=%E8%B6%85%E7%BE%8E%E5%8A%A0%E5%A4%A7%E6%B0%94%E5%AE%A4%E6%81%92%E5%8E%8B%E9%98%80%E3%80%9094003O11.Q%28mk%29%E3%80%91xX4https://www.hao123.com/manhua/list/?cate=%E8%B6%85%E7%BE%8E%E6%81%92%E5%8E%8B%E9%98%80%E7%BB%84%E8%A3%85%E8%B0%83%E8%AF%95%E3%80%9094003O11.Q%28mk%29%E3%80%91lq5https://www.hao123.com/manhua/list/?cate=%E6%81%92%E5%8E%8B%E9%98%80%E6%80%8E%E6%A0%B7%E8%BF%9E%E6%8E%A5%E7%B2%BE%E5%AF%86%E7%AE%A1%E3%80%9094003O11.Q%28mk%29%E3%80%91YmZhttps://www.hao123.com/manhua/list/?cate=%E6%89%93%E9%B8%9F%E5%B7%A5%E5%85%B7%E5%BE%AE%E4%BF%A1%E6%89%93%E9%B8%9F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87%E3%80%9094003O11.Q%28mk%29%E3%80%91NKAhttps://www.hao123.com/manhua/list/?cate=%E6%89%93%E9%B8%9F%E7%94%A8%E4%BB%80%E4%B9%88%E5%B7%A5%E5%85%B7%E3%80%9094003O11.Q%28mk%29%E3%80%91TBohttps://www.hao123.com/manhua/list/?cate=%E6%89%93%E9%B8%9F%E7%94%A8%E4%BB%80%E4%B9%88%E5%B7%A5%E5%85%B7%E5%A5%BD%E5%91%A2%E3%80%9094003O11.Q%28mk%29%E3%80%91eNZhttps://www.hao123.com/manhua/list/?cate=%E7%8E%B0%E5%9C%A8%E6%89%93%E9%B8%9F%E7%94%A8%E4%BB%80%E4%B9%88%E5%B7%A5%E5%85%B7%E5%A5%BD%E3%80%9094003O11.Q%28mk%29%E3%80%91WVnhttps://www.hao123.com/manhua/list/?cate=%E5%BC%A9%E6%89%93%E6%96%91%E9%B8%A0%E8%A7%86%E9%A2%91%EF%BC%8Cm4%E7%8C%8E%E8%B1%B9%E6%89%93%E9%92%A2%E7%8F%A0%E3%80%9094003O11.Q%28mk%29%E3%80%91VvQhttps://www.hao123.com/manhua/list/?cate=%E9%92%A2%E5%B0%86m4%E6%94%B9%E8%A3%85%E5%8F%AF%E4%BB%A5%E6%89%93%E9%92%A2%E7%8F%A0%E9%93%85%E7%B2%AE%E7%A3%A8%E5%85%B7%E3%80%9094003O11.Q%28mk%29%E3%80%91Amhhttps://www.hao123.com/manhua/list/?cate=%E5%85%A8%E9%92%A2%E5%B0%8F%E5%BC%A9%E9%9C%B8%EF%BC%8C%E5%B0%8F%E5%9E%8B%E5%BC%93%E5%BC%A9%E5%A4%9A%E5%B0%91%E9%92%B1%E4%B8%80%E4%B8%AA%E3%80%9094003O11.Q%28mk%29%E3%80%91tZChttps://www.hao123.com/manhua/list/?cate=%E6%89%93%E7%8B%97%E9%BA%BB%E9%86%89%E9%92%88%E6%8A%A2%E4%BB%B7%E6%A0%BC%E3%80%9094003O11.Q%28mk%29%E3%80%91OgGhttps://www.hao123.com/manhua/list/?cate=%E6%89%93%E7%8B%97%E9%BA%BB%E9%86%89%E9%92%88%E6%8A%A2%E5%A4%9A%E5%B0%91%E9%92%B1%E3%80%9094003O11.Q%28mk%29%E3%80%91a9Zhttps://www.hao123.com/manhua/list/?cate=%E6%89%93%E7%8B%97%E9%BA%BB%E9%86%89%E9%92%88%E6%89%B9%E5%8F%912020%E3%80%9094003O11.Q%28mk%29%E3%80%91ILQhttps://www.hao123.com/manhua/list/?cate=%E6%89%93%E7%8B%97%E9%BA%BB%E9%86%89%E9%92%88%E6%89%93%E7%8B%97%E5%87%A0%E7%A7%92%E5%80%92%E3%80%9094003O11.Q%28mk%29%E3%80%91mK2https://www.hao123.com/manhua/list/?cate=%E6%89%93%E7%8B%97%E9%BA%BB%E9%86%89%E9%92%88%E5%8F%91%E5%B0%84%E5%99%A8%E3%80%9094003O11.Q%28mk%29%E3%80%91f9K
打开App,查看更多内容
随时随地看视频慕课网APP
我要回答
继续浏览精彩内容
慕课网APP
程序员的梦工厂
继续