Ardino will not start

Working with windows 7, and a mega2560. When I start the Arduino programit takes a long time to start then has an error message "error occured when starting". (Launch 4J) After 5 or 6 minutes, the sketch will come on the screen and the program will function.
Have uninstalled Arduino and reinstaled it several times. But error continues. Problem appears to have started after I tried to download a library item?

(deleted)

Problem went away after deleting all items in Aduino folder and reinstalling JAVA

Problem went away for several starts but then came back. Has errror message when opening then after a delay, sketch appears.