Launch4j - An error occurred while starting the application.

What is happening.

I can't start arduino and the message "Launch4j - An error occurred while starting the application." appear. I have uninstalled arduino and I removed arduino folder but my installation does not work.

Does anybody know how to fix this problem?

I had and fixed this issue on Window 7 64bit. I had two problems.

  1. Java was being blocked by my antivirus - so Java wouldn't work at all on my PC - worth checking if other Java applications can run (open Java in your Control Panel -if it doesn't load, you have a similar problem)

  2. Needed to rename the Java directory in the Arduino install folder
    There is an Arduino_Debug.exe which loads a console window showing the progress of the application load. In my case what it showed was spurious; but contents in your case could be helpful. Be ready with the Printscreen button as if there's an error - the window won't stay.

Just made the same experience with detecting this error message.
As result of the message Windows 8.1 stopped more or less completely and I had to push the reset-button.
Investigation lasted the whole day long but finally I found the conflicting issue on my computer:

Spyware Terminator 2015: If the program "SpywareTerminatorShield.exe" runs, Arduino IDE does not start with the result of the launch4j error message.

Solution: Either de-install Spyware Terminator or de-select this file to run in the start-up section of Windows (e.g. using autoruns).

My environment: Windows 8.1 (64bit), Arduino 1.0.6.