-
Bug
-
Resolution: Fixed
-
P4
-
6
-
b95
-
x86
-
linux
FULL PRODUCT VERSION :
[jwi@stujwi maven-jar-test]$ java -version
java version "1.6.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta-b59g)
Java HotSpot(TM) Client VM (build 1.6.0-beta-b59g, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Fedora Core 4
Linux stujwi.eur.ad.sag 2.6.15-1.1833_FC4 #1 Wed Mar 1 23:41:37 EST 2006 i686 i686 i386 GNU/Linux
EXTRA RELEVANT SYSTEM CONFIGURATION :
Installation was done via RPM and seems to be successful:
[jwi@stujwi maven-jar-test]$ cat /proc/sys/fs/binfmt_misc/jexec
enabled
interpreter /usr/java/default/lib/jexec
flags:
offset 0
magic 504b0304
A DESCRIPTION OF THE PROBLEM :
A jar file can be executed via "java -jar", but not with jexec.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a jar file with the mainClass attribute in the MANIFEST. The jar file can be executed:
[jwi@stujwi maven-jar-test]$ java -jar test.jar
Ok
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
[jwi@stujwi maven-jar-test]$ /usr/java/default/jre/lib/jexec test.jar
Ok
ACTUAL -
[jwi@stujwi maven-jar-test]$ /usr/java/default/jre/lib/jexec test.jar
bad magic number: Exec format error
REPRODUCIBILITY :
This bug can be reproduced always.
[jwi@stujwi maven-jar-test]$ java -version
java version "1.6.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta-b59g)
Java HotSpot(TM) Client VM (build 1.6.0-beta-b59g, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Fedora Core 4
Linux stujwi.eur.ad.sag 2.6.15-1.1833_FC4 #1 Wed Mar 1 23:41:37 EST 2006 i686 i686 i386 GNU/Linux
EXTRA RELEVANT SYSTEM CONFIGURATION :
Installation was done via RPM and seems to be successful:
[jwi@stujwi maven-jar-test]$ cat /proc/sys/fs/binfmt_misc/jexec
enabled
interpreter /usr/java/default/lib/jexec
flags:
offset 0
magic 504b0304
A DESCRIPTION OF THE PROBLEM :
A jar file can be executed via "java -jar", but not with jexec.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a jar file with the mainClass attribute in the MANIFEST. The jar file can be executed:
[jwi@stujwi maven-jar-test]$ java -jar test.jar
Ok
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
[jwi@stujwi maven-jar-test]$ /usr/java/default/jre/lib/jexec test.jar
Ok
ACTUAL -
[jwi@stujwi maven-jar-test]$ /usr/java/default/jre/lib/jexec test.jar
bad magic number: Exec format error
REPRODUCIBILITY :
This bug can be reproduced always.