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

Misleading error message if 32bit dll used together with 64 bit VM

XMLWordPrintable

    • b80
    • x86
    • windows_vista

        Platform[s] : FAIL - Windows Vista on AMD64

        VM from windows-amd64 binaries throws the UnsatisfiedLinkError with the following error message if one tries to load 32 bit dll via loadLibrary:

        java.lang.UnsatisfiedLinkError: PATH_TO_DLL: %1 is not a valid Win32 application

        Please note that according to error message jckjni.dll "is not a valid Win32 application". But given dll was correct 32 bit dll. This error message is incorrect and may mislead users.

        How to reproduce:

        1. Unpack attached archive.zip
        2. Correct TESTSUITE (/net/jre.sfbay/p/v10/jck/6.0/beta/b15a/binaries/JCK-runtime-60 in SWAN) and PRODUCT in runme.sh
        3. Run runme.sh

        Sample output (obtained on Windows Vista on amd64):

        Z:/Links/stt/jck_workspace/mustang/b67/jck/WinVista/32
        Library loading:
        loadLibrary("invokeinterface00201m1") throws: java.lang.UnsatisfiedLinkError: no invokeinterface00201m1 in java.library.path
        loadLibrary("jckjni") throws: java.lang.UnsatisfiedLinkError: Z:\Links\stt\jck_workspace\mustang\b67\jck\WinVista\32\jckjni.dll: %1 is not a valid Win32 application

        Z:/Links/stt/jck_workspace/mustang/b67/jck/WinVista/64

              ikrylov Ivan Krylov (Inactive)
              idergali Ilya Dergalin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: