eclipse:更改用于运行 ant 的 jre [英] eclipse: change jre that is used to run ant

查看:45
本文介绍了eclipse:更改用于运行 ant 的 jre的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改用于从 eclipse 内部运行 ant 的 JRE(例如,从 64 位版本变为 32 位版本)?

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?

推荐答案

我不确定您能否以全局方式做到这一点.但是,当您在特定项目上运行 Ant 时,可以选择您的 JRE:

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:

进入项目的Properties,然后选择BuildersAnt Builder.在此构建器的属性中,进入 JRE 选项卡,然后选择一个 Separate JRE.

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.

另一种解决方案是直接在您的 build.xml 文件中指定使用的 JRE.

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

这篇关于eclipse:更改用于运行 ant 的 jre的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆