Name: bsC130419 Date: 05/16/2001
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
If one creates a manifest file where the main class is followed by whitespace
before the carriage return:
Main-Class: test
the jar file cannot be run using the syntax:
java -jar test.jar
This is a bug. It is very easy to accidentally include whitespace on a line,
especially if the manifest is generated from a batch file:
echo Main-Class: test > manifest.txt
Thanks!
(Review ID: 124491)
======================================================================
###@###.### 2004-11-11 22:28:01 GMT
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
If one creates a manifest file where the main class is followed by whitespace
before the carriage return:
Main-Class: test
the jar file cannot be run using the syntax:
java -jar test.jar
This is a bug. It is very easy to accidentally include whitespace on a line,
especially if the manifest is generated from a batch file:
echo Main-Class: test > manifest.txt
Thanks!
(Review ID: 124491)
======================================================================
###@###.### 2004-11-11 22:28:01 GMT
- relates to
-
JDK-6274276 java.lang.instrument JAR manifest processing does not remove spaces from class names
- Closed