title: import different version of library in Java with NetBeans
body: <p>I'm using NetBeans 7.2 as IDE, Java 7 and I have a lot of issues with different versions of a library.</p>
  
  <p>Let's call the library in question as Lib (JAR file). </p>
  
  <p>I have to realize a project A in Java, that uses package B and package C. Now B has dependency on Lib_v1.jar and C has dependency on Lib_v2.jar. Lib_v1 and Lib_v2 are 2 version of the same library and they aren't compatible, nevertheless they have a lot of class in common, so it is possible that a class can be loaded from a different version of the 
  library.</p>
  
  <p>How can I manage this issue?</p>