- 
    Bug 
- 
    Resolution: Duplicate
- 
     P3 P3
- 
    7
- 
        generic
- 
        generic
                    Java can't execute jar files containing more 64K files if main class is specified in manifest. The only problem - the manifest can't be read.
Running "java -jar chain.jar" got message:
"Error: Invalid or corrupt jarfile chain.jar"
At the same moment using the following commant line is ok. "java -cp chain.jar <main class>"
How reproduce:
1. compile attached sources. "javac -d classes src/oracle/jsr335/linkage/arg0/inner/*.java"
2. create jar file with main class in the manifest: "jar c0fe chain.jar oracle.jsr335.linkage.arg0.inner.Main -C classes/ ."
3. try to execute. "java -jar chain.jar"
Note: when you succesfully fix manifect reading - don't forget to increase PermGenSize (default is not enough for that test).
            
Running "java -jar chain.jar" got message:
"Error: Invalid or corrupt jarfile chain.jar"
At the same moment using the following commant line is ok. "java -cp chain.jar <main class>"
How reproduce:
1. compile attached sources. "javac -d classes src/oracle/jsr335/linkage/arg0/inner/*.java"
2. create jar file with main class in the manifest: "jar c0fe chain.jar oracle.jsr335.linkage.arg0.inner.Main -C classes/ ."
3. try to execute. "java -jar chain.jar"
Note: when you succesfully fix manifect reading - don't forget to increase PermGenSize (default is not enough for that test).
- duplicates
- 
                    JDK-7194005 (launcher) needs to be enhanced for 64-bit jar file handling -           
- Closed
 
-         
- relates to
- 
                    JDK-7105520 Problem while opening 2GB .jar files with java 1.6.0 -           
- Closed
 
-