`
sucreat
  • 浏览: 39377 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

maven配置

阅读更多
配置maven比较严格。
1.如果出现了输入java命令是可运行的,但输mvn报错
ERROR: JAVA_HOME is set to an invalid directory.
请参考:

   
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
    The JAVA_HOME variable is expected to point to a single directory only, it is not meant to be a list of multiple paths. Out of curiosity, could you point us to the documentation that suggested to set JAVA_HOME that way.
2.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;
    Again, a single directory spec shouldn't end with a separator like ";"
3.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03\
    Although the trailing back slash is not necessary, this should work. I just tried


2.如果出现mvn 不是内部或外部命令,则参照JAVA_HOME设置的第二条,不能有";"
分享到:
评论
1 楼 shuiguozheng 2010-09-05  
谢楼主,得到了解决

相关推荐

Global site tag (gtag.js) - Google Analytics