Opened 13 years ago

Last modified 11 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, 11 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.

Version 0, edited 11 years ago by Lewis Rosenthal (next)

comment:2 by Silvan Scherrer, 11 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, 11 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.