I work in the Eclipse programming environment . I compile EXE files via Launch4J .

I tested my application on my computer - everything works, but the application does not start on other computers, a message appears:

Java Virtual Machine - A Java exception has occured.

I climbed on the forums , and more specifically here . In general, as people said in the first link, the problem is in some kind of Ant . Changed the settings, as they said, but Eclipse eventually displayed the message

Specified Ant home does not contain a 'lib' directory.

Eclipse has since stopped working. I click on the Run button (start the application), the Run As window is displayed, in which the list consists of two elements Ant Build and Ant Build ... , and below is the OK button.

Well, I chose the first, then the second, the message comes out

Error - Build Failed. Reason: Unable to find an Ant file to run.

Tell me what to do?

The application must be urgently completed today, in the evening.

  • And if you run your exe-file from the command line, maybe there will be an exception text. If not, it is advised to compile with the 'Header type: Console' on the Header tab. - zRrr

1 answer 1

1) It works only on one computer, as it is possible that other computers do not need the correct version of Java JRE.

2) Due to the fact that in Eclipse I changed the Ant settings, its location was lost, therefore the application did not start. If anything, then in the "Ant Path" settings you need to specify the path to the Java JRE, where the lib folder itself is located.