Wednesday, January 18, 2012

The specified JRE installation does not exist

This error occurs when the jre specified in the ant run time configuration does not exist on the system. When we try to run the ant build file, it throws the following error.


Opening the details of the error shows that the ant build failed due to a coonflicted version of the jre.



In order to remove this error, you need to right click on the ant file. In the Run As you need to click on Open External Tools Dialog as shown in figure.



In the dialog box, under the Ant Build, select the ant build file you need to set the JRE for. Open the tab named JRE, probably at the extreme right of the dialog box. And select the JRE which you are using for development.






4 comments:

  1. Thanks! It worked like a charm!
    http://magnot.blogspot.com

    ReplyDelete
  2. I've been searching for almost 1 week to find solution for this.
    And now I found u. thanks a lot for sharing this helpful post ..
    God bless bro ///

    ReplyDelete
  3. Thank you so much! It worked.

    ReplyDelete