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

System.load()/ Runtime.load() API Fails

    Details

      Description

      System.load() method failure on all platforms.

      Here is the code sniplet
          public static String SCENARIO2_DLL = "cmm.dll";
          public static boolean scenario2(){
              try {
                  System.load(JRE_HOME + "/bin/" + SCENARIO2_DLL);
              }catch (Throwable e){
                  e.printStackTrace();
                  return false;
              }
              return true;
          }
      Exception :
      java.lang.UnsatisfiedLinkError: Can't load library: C:\Program Files\Java\jre6/bin/cmm.dll
              at java.lang.ClassLoader.loadLibrary(Unknown Source)
              at java.lang.Runtime.load0(Unknown Source)
              at java.lang.System.load(Unknown Source)
              at LibraryLoadTest.scenario2(LibraryLoadTest.java:52)
              at LibraryLoadTest.kjre02_02(LibraryLoadTest.java:127)
              at LibraryLoadTest.main(LibraryLoadTest.java:175)
      KJRE002_02 Scenario 2(System.load) : FAIL

      Applicable for Runtime.load() also .

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rnairsunw Raghu Nair (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: