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
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
- relates to
-
JDK-6271065 java.ext.dirs should be expanded
- Resolved
-
JDK-6819213 revive sun.boot.library.path
- Closed