Ant cannot find JRE to run JUnit tests

Sometimes Ant cannot find the JRE to run the JUnit tests – this can easily be fixed by right clicking on the build.xml file, selecting “Run As..” -> “External Tools Configuration”. Choose the JRE tab far to the right and select the JRE that the workspace also runs.

Eclipse 3.6.1 Linux General, Junit 4.0 and ant 1.71.2.

Published by Anders Aaberg

IT-development consultant at Nine A/S MSc. Advanced Computer Science @ University of Leeds, UK

Leave a comment

Your email address will not be published. Required fields are marked *