views:

61

answers:

1

I'm working on a blackberry project using eclipse and bb-ant tools. I've created a build.xml file to perform the build. Everytime I try to run an Ant build, eclipse pops up the progress dialog and it hangs stating "Waiting for virtual machine to exit."

I downloaded an open source Blackberry project that has an ant build and it is showing the same behavior.

Does anyone have any suggestions?

Edit:

I used the command line to build my xml file and it built fine. However, when I tried from Eclipse it still hangs.

I've tried both the standard eclipse plugin directory and the path I downloaded ant to.

+1  A: 

You could check if your ANT_HOME settings are correct (see also this blog post).

"Window > Preference > Ant > Runtime": "Ant Home Entries".
if the jars files are from a plugin directory (beside the default 'org.apache.ant_1.7.1.v20090120-1145' one) and not an independent ant installation, that might explain the problem.
Try clicking the "Ant Home" button on the right side and setting up ant home such as "C:\path\to\apache-ant-1.7.0"

There are similar bugs to this kind of situation (bug 173419, ticket 91).
It is worth checking the JVM used for the project.
It can also occurs when a ant task is poorly implemented.

VonC
I'll take a look when I get back home. I'm pretty sure they're to the default plugin directory. I could try installing Ant standalone and see if that helps.
taylonr
It was pointing to the eclipse plugin. I also downloaded 1.8, put it on the C:\ drive and pointed to it, with the same results.
taylonr
@taylonrr: just added a few links, but nothing definitive. It is worth double-checking what actual `ANT_HOME` is considered at runtime (even if the Eclipse has a correct `ANT_HOME`).
VonC
Thanks for the help.. I'll check those out tonight.
taylonr