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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定你是否可以在全球范围内做到这一点。但是,当您在特定项目上运行
Ant
时,可以选择 JRE:进入项目的
Properties
,然后选择Builders
和Ant Builder
。在此构建器的属性中,进入JRE
选项卡,然后选择一个单独的 JRE
。另一种解决方案是在
build.xml
文件中指定直接使用的 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:Go in the
Properties
of your project, then selectBuilders
andAnt Builder
. In the properties for this builder, go in theJRE
tab, and choose anSeparate JRE
.Another solution is to specify the JRE used directly in your
build.xml
file.