Eclipse "Waiting for virtual machine to exit"

I am working on a Blackberry project using eclipse and bb-ant tools. I created a build.xml file to complete the build. Every time I try to run the Ant construct, eclipse displays a run dialog and it freezes, stating that it is "Waiting for the virtual machine to exit."

I downloaded an open source Blackberry project that has an Ant construct and demonstrates the same behavior.

Does anyone have any suggestions?

Edit:

I used the command line to create my XML file and it was built perfectly. However, when I tried to use Eclipse, it still freezes.

I tried both the standard eclipse plugin directory and the path I downloaded Ant to.

+4
source share
3 answers

You can check if your settings ANT_HOME (see also blog post ).

"Window > Preference > Ant > Runtime" : " Ant Home Entries ".
if the jars files are from the plugin directory (next to the default is " org.apache.ant_1.7.1.v20090120-1145 ") and not an independent ant installation, this may explain the problem.
Try clicking the " Ant Home " button on the right side and setting up ant home, for example, " C:\path\to\apache-ant-1.7.0 "

There are similar errors in this situation ( error 173419 , ticket 91 ).
It is worth checking out the JVM used for the project .
This can also happen when the ant task is not executed correctly .

+4
source

You are having a problem because the wrong java version of the ant version was started with an error.

By default, eclipse will try to run the ant construct using the java version that it uses to compile java files (Blackberry JRE) that won't work! You need to change the jre version by selecting "Run As ...> ant build". Before clicking the button, go to the JRE tab, select "Individual JRE:" and change the "Blackberry JRE" to the standard java JRE. Press the start button and everything should work correctly.

+2
source

I also got into this problem. Although I never used the same solution, you pointed me in the same direction.

I used the ant file as a builder in my project, and I disabled the ability to build the Allocate Console. This is when I click "Wait for the virtual machine to exit." So I just turned on the "Run in the background" option and it worked.

0
source

All Articles