JDK-6521135 : Using the jar -m switch doesn't include the "SplashScreen-Image" param
  • Type: Bug
  • Component: tools
  • Sub-Component: jar
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-02-05
  • Updated: 2011-02-16
  • Resolved: 2007-02-05
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b104)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b104, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Windows XP Professional SP2 Hungarian, All patches

A DESCRIPTION OF THE PROBLEM :
When using the jar tool with the -m option, the created file's META-INF/manifest.mf does not include the "SplashScreen-Image" value specified in the original manifest.mf.
I'd expect to honor this since so much effort has been taken to implement the splash-screen functionality

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.) Create any simple Hello World java program and compile it (HelloWorld.java)
2.) Create a MANIFEST.MF file containing:

Manifest-Version: 1.2
Main-Class: HelloWorld
SplashScreen-Image: splash.png

3.) Use the jar tool to create a jar file:
jar -cfm HelloWorld.jar MANIFEST.MF HelloWorld.class


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Now look inside the HelloWorld.jar/META-INF/MANIFEST.MF file and you
should see:

Manifest-Version: 1.2
Created-By: 1.6.0-rc (Sun Microsystems Inc.)
Main-Class: HelloWorld.class
SplashScreen-Image: splash.png
ACTUAL -
Manifest-Version: 1.2
Created-By: 1.6.0-rc (Sun Microsystems Inc.)
Main-Class: HelloWorld.class


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION This appears to not be a bug so I am closing it as such. If this evaluation is in error, please re-open the bug. The problem appears to be that the submitter's MANIFEST.MF file does not end with a newline, as required by the Jar Specification. It is not completely possible to tell from the Description, but this issue has been filed
05-02-2007