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

Debug VM sensitive to JAVA_HOME

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • hotspot
    • None
    • beta
    • sparc
    • solaris_8
    • Verified

      Hotspot is using the environment variable JAVA_HOME to attempt to
      locate shared libraries.

      Unfortunately, there is no guarantee that JAVA_HOME is set to any
      particular acceptable value, and the rest of the JDK does not depend
      on it.

      Test case - set JAVA_HOME to a 1.2 JDK, and run java_g from a 1.3 JDK.

      # setenv JAVA_HOME /usr/java1.2
      # /usr/j2se/bin/java_g -version
      There was an error trying to initialize the HPI library.
      Please check your installation, HotSpot does not work correctly
      when installed in the JDK 1.2 Solaris Production Release, or
      with any JDK 1.1.x release.
      Could not create the Java virtual machine.


      This only applies to _g versions of commands.

            jcoomes John Coomes (Inactive)
            foliversunw Fred Oliver (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: