Name: boT120536 Date: 02/08/2001
% java -version
java version "1.3.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)
% uname -a
SunOS terror 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-5_10
Solaris 2.7 supports the direct execution of JAR archives ("JAR executables")
using
/usr/kernel/exec/javaexec
and
/usr/kernel/exec/sparcv9/javaexec (64bit SPARC) kernel modules.
Unfortunately the path of the required jexec binary is hardcoded:
-- snip --
% strings /usr/kernel/exec/javaexec
/usr/java/lib/jexec
-jar
exec for Java
% file /usr/java/lib/jexec
/usr/java/lib/jexec: cannot open: No such file or directory
% find /usr/java/. -name jexec
/usr/java/./jre/lib/sparc/jexec
-- snip --
It looks that "jexec" now sits in /usr/java/jre/lib/sparc/jexec but kernel
module looks in /usr/java/lib/jexec... nice... ;-(
Solution:
Fix it from _both_ sides
1. Create softlink from /usr/java/lib/jexec to /usr/java/jre/lib/sparc/jexec as
workaround
2. Fix kernel module to search for both new and old location of "jexec".
[3.] Create man page for jexec (and manual page for JAR file format in section 4
(e.g. jar(4)) would be nice, too).
(Review ID: 115684)
======================================================================
- duplicates
-
JDK-4416061 jexec.c references /usr/java1.2 rather than /usr/j2se
-
- Closed
-