Configuring Java version for ANT in eclipse

In IntelliJ, if I want to configure the Java version, I use ANT script, I can just right-click and set the correct one for ANT and select the JDK that I want to use. In Eclipse I do not see such an option. Do I need to hardcode the Java version into my script, or is there a way to tell ANT which version I want to use?

+4
source share
1 answer

You can do this in Run Configuration . Right-click the ant ant file, select Run asAnt Build... On the JRE tab, you can switch to any JRE.

You may need to add a JRE to eclipse it first by clicking Installed JREs... , after which the Eclipse settings dialog box will open, in which you can add it.

+6
source

All Articles