Opened 13 years ago

Last modified 12 years ago

#156 new defect

Splash screens do not display

Reported by: Lewis Rosenthal Owned by:
Priority: minor Milestone: Enhanced
Component: general Version: 1.6.0-b22 GA
Severity: medium Keywords:
Cc:

Description

Using 1.6.0-b22 GA, I am unable to get splash images (png, jpg, or gif) to display, using either method described in http://docs.oracle.com/javase/6/docs/api/java/awt/SplashScreen.html (startup option -splash: filename.gif or in the manifest as SplashScreen-Image: filename.gif).

Examples:

  1. Standalone png in current directory:
/* */
parse source . . thiscmd

jbin = 'c:\Java160_b22\bin\java.exe'
classpath = ''

mdbin = filespec('drive', thiscmd)||filespec('path', thiscmd)  

'@' || jbin' -splash:splash.png -mx512m -cp 'mdbin'moneydance.jar;'mdbin'appsrc.jar;'mdbin'jcommon-1.0.16.jar;'mdbin'jfreechart-1.0.13.jar;'mdbin'tablelayout.jar Moneydance'

return rc

Result:

Applications starts, but no splash page. No error is displayed or recorded in a log.

  1. Packed splash info in META-INF/MANIFEST.MF:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.2
Created-By: 1.6.0_27-b07-395-11M3515 (Apple Inc.)
Main-Class: Moneydance
SplashScreen-Image: com/moneydance/apps/md/view/gui/icons/splash.png

Moneydance.cmd:

/* */
parse source . . thiscmd

jbin = 'c:\Java160_b22\bin\java.exe'
classpath = ''

mdbin = filespec('drive', thiscmd)||filespec('path', thiscmd)  

'@' || jbin' -mx512m -cp 'mdbin'moneydance.jar;'mdbin'appsrc.jar;'mdbin'jcommon-1.0.16.jar;'mdbin'jfreechart-1.0.13.jar;'mdbin'tablelayout.jar Moneydance'

return rc

Result:

Applications starts, but no splash page. No error is displayed or recorded in a log.

I have tried other applications and varying splash images (test image, attached).

Attachments (1)

splash.png (31.0 KB ) - added by Lewis Rosenthal 13 years ago.
Moneydance splash image, extracted from jar file

Download all attachments as: .zip

Change History (4)

by Lewis Rosenthal, 13 years ago

Attachment: splash.png added

Moneydance splash image, extracted from jar file

comment:1 by Lewis Rosenthal, 12 years ago

We may want to close this ticket. I am unable to get a splash screen in the app under Sun Java (latest version) on Windows. It may be a Java bug and not specific to the OS/2 port.


Correction: I tested incorrectly under Windows. If specified, the -splash:<image> parameter must come before any -jar options. Doing that, the splash works under Windows with both java.exe and javaw.exe (Sun JRE 1.7.0_21). I have not tested under openJRE or openJDK on any other platforms.

Last edited 12 years ago by Lewis Rosenthal (previous) (diff)

comment:2 by Silvan Scherrer, 12 years ago

please test with OpenJDK on an other platform. So we know for sure if it's cross os or on our port only.

comment:3 by Lewis Rosenthal, 12 years ago

Tested under openSUSE 12.2, using:

java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.5) (suse-1.1-i386)
OpenJDK Client VM (build 20.0-b12, mixed mode)

java -splash:<filename> -jar <jarfile>

works as expected (splash screen is displayed).

This also works under openSUSE 12.2, using:

java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.4) (suse-3.20.1-i386)
OpenJDK Client VM (build 23.2-b09, mixed mode)

So, this seems to be something specific to the OS/2 port.

Note: See TracTickets for help on using tickets.