eclipse:更改用于运行ant的jre

发布于 2024-09-29 16:28:43 字数 61 浏览 1 评论 0原文

如何更改用于从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

潇烟暮雨 2024-10-06 16:28:43
  • 从菜单中选择“运行”->“运行”。外部工具 ->外部工具配置(或使用等效的工具栏按钮 工具栏按钮
  • 选择您的 Ant
  • 构建 单击 JRE 选项卡 (external tools tabs ),单击分离 JRE 并选择所需的 JRE
  • From the menu, choose Run -> External Tools -> External Tools Configurations (or use the equivalent toolbar button toolbar button)
  • Select your Ant Build
  • Click the JRE tab (external tools tabs ), click Separate JRE and pick the required JRE
大海や 2024-10-06 16:28:43

我不确定你是否可以在全球范围内做到这一点。但是,当您在特定项目上运行 Ant 时,可以选择 JRE:

进入项目的 Properties,然后选择 BuildersAnt 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 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文