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:
- 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.
- 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)
Change History (4)
by , 13 years ago
Attachment: | splash.png added |
---|
comment:1 by , 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.
comment:2 by , 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 , 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.
Moneydance splash image, extracted from jar file