IBM Support

IV53172: ON WINDOWS PLATFORM SYSTEM.LOADLIBRARY FAILS WITH UNSATISFIEDLINKERROR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: On Windows platform System.loadLibrary fails with
    UnsatisfiedLinkError Exception with error message "The specified
    path is invalid"
    .
    Stack Trace: Exception in thread "testcase"
    java.lang.UnsatisfiedLinkError: example (The specified path is
    invalid.)
    at
    java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1018)
    at
    java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.jav
    a:982)
    at java.lang.System.loadLibrary(System.java:472)
    .
    

Local fix

  • The issue can be worked around by removing any invalid path
    entries present either in a) PATH environment variable or b)
    -Djava.library.path.
    For example: In the following -Djava.library.path value
    -Djava.library.path="C:\java;\"C:\ibm\product\WAS\MQ\jre\bin\";C
    :\opt;C:\temp"
    the additional double quotes in the path
    \"C:\ibm\product\WAS\MQ\jre\bin\" will cause the JVM fail with
    the exception. So, the exception can be solved by removing the
    additional double quotes (C:\ibm\product\WAS\MQ\jre\bin).
    

Problem summary

  • The problem occurs when the native library search path list
    contains an invalid path, such as a path with additional quotes.
    The JVM does not search the paths after the invalid path. The
    native library search path list can be specified by using the
    -Djava.library.path command line option or the PATH environment
    variable.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR16
    7.1.0 SR1
    7.0.0 SR7
    6.0.1 SR8
    .
    The JVM has been modified to process all the path entries
    contained by the library search path entries.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV53172

  • Reported component name

    J9 COMMON CODE

  • Reported component ID

    620700127

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2013-12-10

  • Closed date

    2013-12-17

  • Last modified date

    2013-12-17

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    J9 COMMON CODE

  • Fixed component ID

    620700127

Applicable component levels

  • R600 PSY

       UP

  • R270 PSY

       UP

  • R260 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
14 December 2020