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

Any attempt to set sun.boot.library.path causes VM to fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 5.0
    • hotspot
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.5.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
      Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      CLASSPATH is not set (empty)
      PATH is not set (empty)
      JAVA_HOME is not set
      LD_LIBRARY_PATH is not set
      LIB_PATH is not set


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      set CLASSPATH=
      set PATH=
      set LD_LIBRARYPATH=
      set LIB_PATH=
      set JAVA_HOME=
      c:\jdk1.5.0\bin\java -Dsun.boot.library.path=anything TestVM


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      should run the TestVM.class main() method:

      public class TestVM {
      public static void main(String args[]) {
      System.out.println("DONE");
      }
      }


      ACTUAL -
      Error occurred during initialization of VM
      Unable to load native library: Can't find dependent libraries

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Error occurred during initialization of VM
      Unable to load native library: Can't find dependent libraries

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class TestVM {
      public static void main(String args[]) {
      System.out.println("DONE");
      }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Well obviously don't use -Dsun.boot.library.path option when starting VM.

      However, I if you need to use -Xbootclasspath and load system libraries with System.loadLibrary then in previous jdk's the solution was to use -Dsun.boot.library.path. I have not found a workaround for this.
      ###@###.### 2005-1-06 00:17:48 GMT

            jkowalsksunw Joseph Kowalski (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: