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.
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.
- duplicates
-
JDK-4333854 jar skip's last line of manifest file
-
- Closed
-
- relates to
-
JDK-4274235 Class-Path attribute of manifest file needs new line character at end of line
-
- Closed
-
-
JDK-4894998 Last line of Manifest discarded
-
- Closed
-