Questions Tagged With jarhttps://answers.axonivy.com/tags/jar/?type=rss&user=Genzer%20Hawkerquestions tagged <span class="tag">jar</span>enTue, 10 May 2016 12:47:55 -0400Why there are two guava JARs in Axon.ivy engine's lib/shared?https://answers.axonivy.com/questions/1762/why-there-are-two-guava-jars-in-axon-ivy-engine-s-lib-shared<p>Hi Ivy team</p> <p>Our team are about to use Guava in our project. The version we use is 19.0. When we test on Axon.ivy Designer, everything works just fine. However, when we deploy on engine, it get exception at runtime:</p> <p><code>Caused by: java.lang.NoSuchMethodError: com.google.common.collect.Range.closed(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/Range;</code></p> <p>After digging around, we discovered that there are 2 jars of guava in Axon.ivy engine's <code>lib/shared</code> directory: <code>guava-16.0.1.jar</code> and <code>guava-11.0.2.jar</code>. At runtime, somehow Axon.ivy Engine chooses to load <code>guava-11.0.2.jar</code> and ignore the other jar.</p> <p>My questions are:</p> <ul> <li>Why there two jars of two different version?</li> <li>Is there anyway we can use <code>guava-19.0</code> without overriding Axon.ivy engine's <code>lib/shared</code>?</li> </ul>Genzer HawkerTue, 10 May 2016 12:47:55 -0400https://answers.axonivy.com/questions/1762/why-there-are-two-guava-jars-in-axon-ivy-engine-s-lib-sharedjarlibraryconflict