Arduino IDE "launch 4j" error

8,414

Solution 1

The same thing happened to me; I tried a huge number of different suggestions to fix this.

Eventually I switched any read-only files in my c:\Users\%User%\AppData folder to write-enabled and any problems I was having with Java (in processing and the Arduino IDE) disappeared.

Solution 2

I tried pretty much all suggestions I could find scattered in various forums without luck.

The one thing that eventually worked for me (with Arduino 1.5.6-r2 Beta) was to replace the [arduino_root]/lib/jna.jar version (3.0.3 b2) that comes with the Arduino IDE with another version (3.2.7) that I had laying around from an installation of the Gradle build tool.

Share:
8,414

Related videos on Youtube

Community
Author by

Community

Updated on September 18, 2022

Comments

  • Community
    Community over 1 year

    I have a computer running Windows XP. I am trying to run the Arduino IDE 0022. I double-click on arduino.exe, it waits about 30 seconds on the load up title screen, and then it gives me this error:

    Launch 4j: an error occurred while starting the application

    My only choice is to click "OK"; the error goes away, and the Arduino IDE closes. If I try to delete the Arduino files (to try overwriting with some different files), I get an error that doesn't allow me to do so:

    Cannot delete awt.dll: Access denied

    Make sure the disk is not full or write protected and that the file is not currently in use.

    The only way to delete the file is by restarting the computer. So something must still be trying to run after that first error.

    I have noticed in Task Manager that some Java programs are still running: javaw.exe (3 processes)

    I think this is a problem with Java, but I checked and updated all of my Java software and it is all up to date. I have looked on other forums for this issue and none of them seemed to help. From the forums I have tried:

    1. Different Arduino IDE versions
    2. Updating Java
    3. Opening arduino.exe as Administrator

    Nothing has worked. Anyone have any suggestions?

    • evan.bovie
      evan.bovie almost 13 years
      @John Did you remove all of your sketches from your user folder before opening?