Splash Window

Show a splash window during program starting


Introduction

This function is supported on Windows only. Since V2.1.2, the SpalashScreen is supported on Windows, Linux and Mac OS X.

During Windows GUI type of program is starting, it is supported to show a splash window before the main window opens. Usually the splash window shows a program image. The splash window will be closed in a short time.

Comparing with Splash feature of JRE 1.6, Splash Windows of Jar2Exe is more simple and easy. Splash Window of Jar2Exe is JRE version independent, it can work with any version of JRE. It can show a fixed image only.


Integrate

To integrate with Splash Window is not necessary.

If you want to control the Splash Window, for example: to show for a longer time, or close at a certain moment, you need to do some integration.

Comments

Splash Screen show again when app is out of focus

My App is a full screen app and when it works on multiple screens when it loses focus when interacting with the other screen the Splash screen appears again and stays until I get back to the app

Splash screen with JDK 11

After migrating to JAVA 11, the Splash screen is not working. and getting following error

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (jar:file:/C:/ProgramFiles/jdk-11.0.1/app.exe!/BOOT-INF/lib/jaxb-impl-2.2.11.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

doesn't display JRE not found error if splash enable

If I build an GUI executable (/type windows) with splash window enable, the executable doesn't display "Java Runtime Environment not found." or any other error if it can't find the JRE on the system.  The program just flashes the splash window then quickly exits.

 

Jar2Exe version: 2.1.7.1099

OS: Win 8.1 64-bit

 

BEX Event from MSVCR100.dll

The exe I make from Jar2Exe disappears occasionally in a Windows level crash (EventType=BEX).  Running from the jar, this crash has not been experienced.

In the Report.wer, noticed that the Fault Module Name (MSVCR100.dll) is adjacent to splashscreen.dll (in the JRE directory).

This failure has been experienced only in 64 bit Windows 10, never anywhere else.

This failure happens very rarely, but it only happens when the Java code is running "Runtime.getRuntime().exec((String[])cmds.toArray(new String[0]), null, null);"  The underlying exe that is called is always the same, but the failure has only been experienced when a specific parameter is sent (thus calling on the underlying exe to perform a certain function).  The only function where the failure is observed is on the "save" command.  The underlying exe is called many times without problem, but when this long-running "save" command is run, sometimes there is this failure.

Question: Could there be unexpected interaction from the splashscreen.dll when Runtime.getRuntime().exec() is called from an already running Java application?

Windows crash report and Java code running during the crash:

https://drive.google.com/folderview?id=0B5wbKf9nXS7mbk1ndlEtZEkzNjg&usp=...

Inquiry made in the support forum for the underlying exe:

https://www.silicondust.com/forum/viewtopic.php?f=16&t=22061&p=136979#p1...

 

Splash Window Never Goes Away

In version 1.3, I had a bmp file that showed as a splash screen for a few seconds when my program started up.

When I went to 2.1, I had the same problem as lionel (above).

There is an additional problem, though.  If you do not have any GUI, and you run as a "Windows GUI Application", then the splash screen never goes away.

I have been able to get the splash screen to go away by adding this to my code:

JFrame frame = new JFrame();        frame.setVisible(true);        frame.dispose();

But there must be a delay before running this, otherwise the splash disappears too soon (I do not have the "Close splash when first window opens" checked).

So although there is a work-around, I don't think that the spash screen should persist indefinitely for Windows GUI applications that do not need any GUI elements.

Please use 'gif', 'png' or 'jpg' file

Since Jar2Exe v2.1.2, the generated exe file will use the "splash" feature of JRE instead if it is running with JRE 1.6 or above.

The "Splash" of JRE requires a 'gif', 'png' or 'jpg' file, so please try again.

I'm so sorry Jar2Exe does not limit this or clarify this.

Your second question, you can control the splash by 'close()' of 'java.awt.SplashScreen'.

bmp in fileselect

I have PNG splash screen with transparency. But in splashscreen fileselect is only bmp, gif or jpg extension.

So i change extension from png to bmp and it's worked...... Maybe a mistake?

Splash window not showing

Hi,

For some reasons, my splash window is not showing.

I've configured it in step 3 and it shows when I click on Test button. But not when I launch the exe (Windows GUI Application).

I tried to change many options here and there but it's always the same. No splash.

Jar2Exe version: 2.1.6.1060
OS: W7 64 bits

Any idea?

Lionel

It's working now.

It's working now.

My splash was a bmp file. I converted it to jpg format and it's showing.

Add new comment