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

Windows DLL path not set correctly.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b17
    • OS:
      windows

      Backports

        Description

        Windows native code in java in several places assumes the runtime bin directory is in the DLL path by loading dll's without full path.
        One example of this is zip.dll, src/java.base/share/native/libjimage/imageDecompressor.cpp where LoadLibrary("zip.dll"); is called (no full path to dll used). There are other instances of this.

        In jpackage we work around this by calling SetDllDirectory(runtimeBinPath.c_str());
        in WinLauncher.cpp, but the runtimeBinPath used is based on the default runtime location, instead of the actual runtime location.

        As a result, if runtime is moved, custom splash screen will fail to load.
        Also using https connection may result in:
         Exception in thread "Reader-BG-1" java.lang.InternalError: platform
        encoding not initialized

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                herrick Andy Herrick
                Reporter:
                herrick Andy Herrick
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: