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

Print java.library.path value in UnsatisfiedLinkError

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: core-libs

      Description

      I recently came across a case where following error was encountered :

      $ java loadLib
      Exception in thread "main" java.lang.UnsatisfiedLinkError: no ttJdbcCS in
      java.library.path
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
      at java.lang.Runtime.loadLibrary0(Runtime.java:870)

      We can do better and print the value of java.library.path. While here, we should check other java.lang classes to see if other exception handling improvements are possible.

        Attachments

          Activity

            People

            • Assignee:
              coffeys Sean Coffey
              Reporter:
              coffeys Sean Coffey
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: