`

liferay6.1 环境搭建遇到点问题

 
阅读更多

执行 ant  all 出现问题

 

The environment variable ANT_OPTS is not set.

Please set it to the recommended value of "-Xms256M -Xmx512M".

 

找到了答案

 

如下:

window

 

在我电脑中设置环境变量

ANT_OPTS=-Xms256M -Xmx512M

 

还是不行

 

最后在${ant_home}/bin中 找到 ant.bat

 

在其中加入

set ANT_OPTS=-Xms256M -Xmx512M

再执行 ant all

 

一切ok

 

 

参考http://www.liferay.com/community/wiki/-/wiki/Main/Ant+opts/maximized

 

 

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics