Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When I add a Splash Screen using Launch4j, I get a Startup Error ("An error occurred while starting the application")

I noticed that Launch4j's GUI seems to prefer a bmp file, so I used Gimp to convert my jpg file into that format, but I kept getting the error when trying to run the executable generated by Launch4j.

like image 372
GregNash Avatar asked Feb 14 '12 17:02

GregNash


2 Answers

I was on the right track by converting my jpg file into a bmp file. The Launch4j GUI allows you to choose any file for the Splash file, but it requires a 24-bit bmp file.

Initially, when I converted my file with Gimp, I converted it into a 32-bit bmp file. This was the cause of my problem. I reconverted the image using Gimp's default value of 24-bits and now the executable that Launch4j creates will run without an error.

like image 147
GregNash Avatar answered Oct 21 '22 23:10

GregNash


Make sure the following options are selected when exporting the BMP in GIMP:

enter image description here

like image 8
Tymek Avatar answered Oct 21 '22 22:10

Tymek