title: getting java.lang.NoSuchMethodError
body: <p>am using jacob jar for calling a macro of excel sheet from java code..</p>
  
  <pre><code>final  ActiveXComponent excel = new ActiveXComponent("Excel.Application");
  final Dispatch workbooks = excel.getProperty("Workbooks") .toDispatch();
  final Dispatch workBook = Dispatch.call(workbooks, "Open", file.getAbsolutePath()).toDispatch(); 
  
  com.jacob.com.Variant f = new com.jacob.com.Variant(true);
  Dispatch.call(workBook, "Close", f);
  </code></pre>
  
  <p>and also am using maven to add all the jar dependency. but then i realised that i need to add the .DLL file then i added jacob jar manually and gave dll file in native library but now am getting </p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: com.jacob.com.Dispatch.call(Lcom/jacob/com/Dispatch;Ljava/lang/String;Ljava/lang/Object;)Lcom/jacob/com/Variant;
          at com.common.getData.callMacro(getData.java:650)
          at com.testcases.PathAndAction.testScreen(PathAndAction.java:874)
          at com.testcases.MainTestClass.testScreen(MainTestClass.java:54)
          at com.testcases.MainTestClass.main(MainTestClass.java:15)
  </code></pre>