Startup error, An error occurred while starting application

Since today i have got a problem when i try to start Arduino IDE.
After around 20 seconds i got a error message calling: An error occurred while starting application

I made a search in google and there are many different solutions but none worked for me.
But i discovered something very very strange. If i go to the folder Documents/Arduino/Libraries. I see that there are 21 subfolders in it. They all are called libraries. I deleted the folder's and refreshed the browser and again i see 21 subfolders. I tired to delete them a few times but every time i refresh without starting up Arduino IDEi have got 21 subfolders.

This is so strange.... I also had the problem that i could not delete the libraries folders because there were to many folder in it.
I also tried to delete the preferences.txt file. Uninstall the software, run in debug:

CmdLine: C:\Program Files (x86)\Arduino\arduino.exe --l4j-debug
WOW64: yes
Working dir: C:\Program Files (x86)\Arduino.
Bundled JRE: java
Check launcher: C:\Program Files (x86)\Arduino\java\bin\javaw.exe (OK)
Add classpath: lib\pde.jar
Add classpath: lib\core.jar
Add classpath: lib\jna.jar
Add classpath: lib\ecj.jar
Add classpath: lib\RXTXcomm.jar
Launcher: C:\Program Files (x86)\Arduino\java\bin\javaw.exe
Launcher args: -Xms128m -Xmx128m -classpath "lib;C:\Program Files (x86)\Arduino\java\lib\tools.jar;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" processing.app.Base
Args length: 170/32768 chars

Hopefully someone can help me with this problem.

Im having this problem too. I have uninstalled and reinstalled the sftware rebooted, trided onpening it both with and without having the board plugged in. I noticed it happened after i had added the newping library. it worked for a while after that but would not upload a sketch when i saved it wo rok on it later the program will not even load

Maybe its because the Ardunio IDE is hacked, broken, glitched or refuses to work

not the most helpful reply

Yeah but, what other reasons are there? :blush: