eclipse: change jre that is used to run ant

浪子不回头ぞ 提交于 2019-12-18 13:05:08

问题


How do I change the JRE (for example, to go from a from 64bit to 32bit version) that is used to run ant from inside eclipse?


回答1:


I am not sure that you can do that in a global way. However, it is possible to choose your JRE when you run Ant on a specific project:

Go in the Properties of your project, then select Builders and Ant Builder. In the properties for this builder, go in the JRE tab, and choose an Separate JRE.

Another solution is to specify the JRE used directly in your build.xml file.




回答2:


  • From the menu, choose Run -> External Tools -> External Tools Configurations (or use the equivalent toolbar button

    )
  • Select your Ant Build
  • Click the JRE tab (

    ), click Separate JRE and pick the required JRE


来源:https://stackoverflow.com/questions/4041023/eclipse-change-jre-that-is-used-to-run-ant

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!