When I launch .jar file like:
#include <windows.h>
using namespace std;
int main() {
system("start javaw -splash:someImage.png -jar someFile.jar");
return 0;
}
Also I have defined -mwindows option in g++ compiler.
Before splash screen - a black console shows for a few millisecods. Is there any solution to avoid that?
Use this: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx
There's a flag CREATE_NO_WINDOW, pass Your command as parameters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With