Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ant in Eclipse: silently terminated

I'm using an Ant build script for my project developed in Eclipse 3.4.2. It's actually a Flex 4 project (using Flash Builder Eclipse Plug-in).

Everything worked ok. But someday something happened and now the executions of Ant build script is silently terminated each time I run it.

When trying to debug Ant script the IDE stops for a moment on a breakpoint and then skips it.

Standalone Ant execution (using command line) works well for my script.

How to fix this problem? Any ideas?

like image 759
alexey Avatar asked Dec 07 '22 04:12

alexey


1 Answers

This usually happens if:

  1. You changed the location of eclipse
  2. You changed the location of your jdk / jre
  3. Both

  1. If you changed the location of eclipse, go to Window -> Preferences -> Ant -> Runtime. Under the classpath tab, make sure the ant home entries are correct. If not, carefully locate the folder they are in (they are all in the same folder which is under the eclipse plugins folder) and add them again, then delete the invalid entries.

  2. If you changed the location of your jre / jdk:

    a) Go to Window -> Preferences -> Ant -> Runtime, and under the classpath tab, expand the Global Entries tree. Make sure the location of tools.jar is valid and is located where it says it is in the file system.

    b) Click on Run -> External Tools -> External Tools Configuration. Expand Ant Build, select each of your ant build files in the workspace, then expand the jre tab and make sure that you either have "Run in the same JRE as the workspace" checked, or your Separate JRE points to a valid installed JRE.

like image 167
Jeshurun Avatar answered Jan 03 '23 01:01

Jeshurun