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

java 1.4 with -d64 flag does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: solaris_9
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      generic
    • OS:
      solaris_8

      Description

      When using java 1.4 there is an option to use a 64bit java binary

      java -help
      :
        -d64
                        use a 64-bit data model if available
      :

      # java -version
      java version "1.4.0-beta3"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b78)
      Java HotSpot(TM) Client VM (build 1.4.0-beta3-b78, mixed mode)


      trying the following

      # isalist
      sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc
      # java -d64
      execv(): No such file or directory

      gives the above error

      a tail of the truss gives
      resolvepath("/usr/j2se/bin/java", "/usr/j2se/bin/java", 1024) = 18
      sysinfo(SI_ARCHITECTURE, "sparc", 12) = 6
      access("/usr/j2se/lib/sparc/libjava.so", 0) Err#2 ENOENT
      access("/usr/j2se/jre/lib/sparc/libjava.so", 0) = 0
      execve("/usr/bin/sparcv9/java", 0x00028A60, 0xFFBFFEC0) Err#2 ENOENT
      execv()write(2, " e x e c v ( )", 7) = 7
      : write(2, " : ", 2) = 2
      No such file or directorywrite(2, " N o s u c h f i l e".., 25) = 25

      write(2, "\n", 1) = 1
      llseek(0, 0, SEEK_CUR) = 8051
      _exit(1)

      execv(): No such file or directory
      #
      # which java
      /usr/bin/java

      from this we appear to need a binary
      /usr/bin/sparcv9/java
      which does not exist

      if we create a link between
      /usr/bin/sparcv9/java and /usr/j2se/bin/sparcv9/java it works

      # java -d64 -version
      java version "1.4.0-beta3"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b78)
      Java HotSpot(TM) 64-Bit Server VM (build 1.4.0-beta3-b78, mixed mode)



        Attachments

          Activity

            People

            • Assignee:
              collins Gary Collins (Inactive)
              Reporter:
              nickyv Nicky Veitch
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: