Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4413660

Can't EXECUTE Jar's from Shell in Solaris 7/106541-12

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.3.0
    • install
    • sparc
    • solaris_7



      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)
      ======================================================================

            billyh William Harnois
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: